3 ms·
It is totally automatic. I'm still working out the tweeting time, so some variability should be expected. The phrases are random, check the code for them here:
by jlhonora 12y ago
It is totally automatic. I'm still working out the tweeting time, so some variability should be expected.
The phrases are random, check the code for them here: https://github.com/jlhonora/iot/blob/master/rpi/twitter_manager.py https://github.com/jlhonora/iot/blob/master/rpi/twitter_mana... . The "mood" for the phrases depends on the ran distance.
The graph I posted was generated with matplotlip and I tweeted it manually. When I finish struggling with D3 I'll put an on-demand graph with the data.
- gambiting 12y agoover 14km a day for such a small creature? That's insane.
- jlhonora 12y agoI thought just the same. At first I thought there was an error with the counting, but there's a debounce of 0.2s for every pulse https://github.com/jlhonora/iot/blob/master/arduino/IoT/pir.cpp https://github.com/jlhonora/iot/blob/master/arduino/IoT/pir..... The wheel is not perfectly symmetric, and I'm placing the magnet on the opposite side of the reed switch used to count each lap, so that there's no risk of getting the switch stuck generating lots of pulses. The activity graph (shown on the twitter feed) is for that same night, which seems to be quite consistent over time. There are no peaks either, so I think it should be accurate. After all, he does run all night.
- druiid 12y agoApparently it's pretty natural for these small animals to run such long distances. My wife has a hamster and they are known to run at least 9km a night. We had to find it a different room to live in because it will be up ALL night running, and running, and running.