windclock
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
windclock [2016/12/30 11:48] – created givanbela | windclock [2017/05/15 14:35] (current) – givanbela | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== WindClock-III ===== | ===== WindClock-III ===== | ||
- | ==== sinterklaas 20161206 | + | A full description of how to make and install your own WindClock-III will be provided here in time. |
- | | + | // Current prototype development state: // |
- | * http:// | + | |
- | * downloaded and copied 2016-11-25-raspbian-jessie on the sd (64G) | + | * python coded all data for realtime request available in a file |
+ | * managed to install a couple of working online transfers with the new websockets/ | ||
+ | * also working on an enviro phat hat with a zero pi w | ||
- | ==== the day after 20161207 ==== | + | // Future work: // |
- | * boot up the rpi | + | * adding a waterproof temperature and ambient light sensor by extending |
- | * upgrade | + | * power: 5V-2A for the pi seems too much, so would use a Teensy with 3.3V 500mA (windclock-iv) |
- | * install sensehat | + | * designing a shape/case for hanging it up and responsive to wind (physical calibration) |
+ | * simple visualisation/ | ||
+ | * work with more than one windclock (but keep it under 10 haha) | ||
+ | * client-side for data capture (katastrof interpretation and sonification) in various programs | ||
- | testing 20161208 | + | // Make and install the real objects // |
- | - ssh and vnc (see below, | + | * rodchenko examples |
- | - went through all the features | + | * gtr-lahaag' |
- | * calibration! https:// | + | * I would just cut out a spiral out of a thin wooden plate and stretch from the middle up |
- | it is in the folder / | + | * we'll ask more people and try them all out? that is greater fun! |
- | startup by typing in console: RTIMULibCal | + | |
- | + going through all sensors | + | |
- | https:// | + | |
- | - made a correction in calibration temperature | + | |
- | problem | + | |
- | changed it to ((temp - cpu temp) * 0.75), but should be better calibrated | + | |
- | | + | |
- | (adding a waterproof temp. sensor would be better...) | + | |
- | testing 20161209 | ||
- | * - want to do ssh and vnc! (working now) pi + pw: timeinventor000 | ||
- | | ||
- | put an ethernet cable between my mac and my pi and .. ah.. no problem | ||
- | scan live hosts on network: nmap -sn 192.168.1.0/ | ||
- | started up X11, ssh-keygen -R 192.168.1.14 (or any other pi address ip) | ||
- | ssh -X pi@192.168.1.14 | ||
- | sudo apt-get install xrdp | ||
- | sudo raspi-config (enable boot to desktop -- console, text console, requiring login) | ||
- | (if you want GUI then type on rpi ' | ||
- | --> also this all works now from the terminal on the mac, no problem | ||
- | Filezilla works as well with the sftp protocol! | ||
- | | ||
- | - also fixed the temperature readout calibration and added the | ||
- | get_temperature_from_pressure (default it is using the humidity sensor) | ||
- | - try to boot with power from usb cable? does not work of course.. | ||
- | | ||
- | testing 20161211 | ||
- | (just need a wifi connection) | ||
- | * (scan for the pi on the network: nmap -sn 192.168.1.0/ | ||
- | (start up with ssh -X pi@192.168.1.14 from the terminal on mac) | ||
- | (start up realvnc client on mac, if needed sudo raspi-config and enable vnc) | ||
- | (to turn off matrix led terminal: python3 shutoffmatrix.py # script in sensehat folder) | ||
- | (sudo shutdown -h now) | ||
- | |||
- | - continued with Detecting movement (pitch-roll-yaw) | ||
- | https:// | ||
- | additionally | ||
- | https:// | ||
- | again checked all sensors (see above, can be done in python, full code:) | ||
- | * https:// | ||
- | |||
- | testing on xmas | ||
- | |||
- | done: sudo apt-get install ipython | ||
- | done: sudo apt-get install ipython3 | ||
- | done: bring together 9DOF and the tph files into 1.. | ||
- | done: wrote data in a file ' | ||
- | how I like simple things hihi | ||
- | name = "John Smith" | ||
- | pin = 1234 | ||
- | file = open(" | ||
- | file.write(name+" | ||
- | file.write(str(pin)+" | ||
- | file.close() | ||
- | # keep this for reading out.... | ||
- | file = open(" | ||
- | name = file.readline() | ||
- | pin = int(file.readline()) | ||
- | file.close() | ||
- | # print name, pin | ||
- | |||
- | here are more complex examples-- from the https:// | ||
- | https:// | ||
- | https:// | ||
- | |||
- | Testing on 2nd XMAS: SENDING DATA TO PC | ||
- | + sounds like the simplest solution: | ||
- | | ||
- | |||
- | done: installed webpy in a new folder on the pi, the executable is delivering messages | ||
- | | ||
- | from pc connecting over browser http:// | ||
- | had to change the script of server.py | ||
- | but now can read files in the ' | ||
- | # (which can be dynamically updated with data, but isn't that a bad solution? at least accessible) | ||
- | # later can read it on the pc with the following python code | ||
- | import urllib | ||
- | link = " | ||
- | f = urllib.urlopen(link) | ||
- | myfile = f.read() | ||
- | date = myfile.split(" | ||
- | |||
- | Also done this: | ||
- | http:// | ||
- | start up the server with terminal command (Public folder is serving files) ' | ||
- | http:// | ||
- | did not bind it to port 80 (sudo http-server -p 80) | ||
- | |||
- | then installed localtunnel | ||
- | so, you have to get http-server running and then launch localtunnel as following e.g. | ||
- | * sudo lt -p 8080 -s windcl0ck -o | ||
- | then you can access worldwide https:// | ||
- | |||
- | WOW! | ||
- | found out when starting the http-server from another folder then it is taking this folder as a starting directory!!! great - just start it up where the files are hihi in my case the sensehat directory | ||
- | terminal: http-server | ||
- | terminal: sudo lt -p 8080 -s windcl0ck -o | ||
- | #change the number in the name for any windclock-III-pi | ||
- | haha make sure the python code is running hihi | ||
- | YIPPEE! | ||
- | |||
- | but also tried to fix the fact that localtunnel was interrupted by some sleep state | ||
- | http:// | ||
- | |||
- | - sudo iw dev wlan0 set power_save off | ||
- | (did not help much) | ||
- | - edit in / | ||
- | (did not help much) | ||
- | - changed startup of xserver in / | ||
- | [SeatDefaults] section, xserver-command=X -s 0 -dpms | ||
- | |||
- | Finally wrote a client page to send around for people to test the data... | ||
- | Windclock-III-Hranice.html | ||
- | refresh and < | ||
- | |||
- | somehow it worked and then not anymore ai ai ai | ||
- | tomorrow more??? | ||
- | yeah I think this tunneling is very unstable, unreliable -- so switch to nginx? | ||
- | first trying to get a stable internet connection and work headless | ||
- | but localtunnel does not want to boot up without X environment!!!! | ||
- | and there is a bug with localtunnel dropping out | ||
- | |||
- | |||
- | |||
- | - ai so better go trying | ||
- | http:// | ||
- | |||
- | - and maybe move to websockets if that is stable? | ||
+ | More details and progress the coming weeks... | ||
+ | {{weatherreports: | ||
+ | {{weatherreports: | ||
+ | {{weatherreports: | ||
windclock.1483094911.txt.gz · Last modified: 2016/12/30 11:48 by givanbela