|
|
| (同じ利用者による、間の6版が非表示) |
| 1行目: |
1行目: |
| − | == Install & Configure == | + | == Install == |
| | [[Gm-10]] 参照。 | | [[Gm-10]] 参照。 |
| | | | |
| 7行目: |
7行目: |
| | </pre> | | </pre> |
| | | | |
| − | git repository を clone
| + | もしまだなら [[Herobox/sensors|sensors]] をセットアップ。 |
| − | <pre>
| |
| − | cd ~/git
| |
| − | git clone ssh://fukudat.net/var/git/sensors
| |
| − | </pre>
| |
| | | | |
| − | python library を install
| + | == Configure == |
| | + | crontab に以下を設定 |
| | <pre> | | <pre> |
| − | cd ~/git/sensors
| + | 4-59/5 * * * * /home/fukudat/git/sensors/bin/upload-radiation |
| − | pip install -r requirements.txt
| |
| | </pre> | | </pre> |
| − |
| |
| − | perl library を install
| |
| − | <pre>
| |
| − | sudo cpan LWP LWP::protocol::https DBI DBD::mysql
| |
| − | </pip>
| |
2020年10月21日 (水) 23:43時点における最新版
Install
Gm-10 参照。
/etc/udev/rules.d/80-ttyUSB.rules
SUBSYSTEM=="tty",DRIVERS=="ftdi_sio",SUBSYSTEMS=="usb",SYMLINK+="gm10-1",OWNER="gm10",MODE="0660"
もしまだなら sensors をセットアップ。
Configure
crontab に以下を設定
4-59/5 * * * * /home/fukudat/git/sensors/bin/upload-radiation