Linux BASH script for sending to radmon.org
9 years 4 months ago #1263
by Hakunin
Replied by Hakunin on topic Linux BASH script for sending to radmon.org
I modified Your script, adding parameters for no-parity and stop-bit (it did not work properly without it)
stty -F /dev/ttyUSB0 9600 -oddp -cstopb
I also suggest to add sleep 60 after exec ; )
Works fine on raspbian : ) Thank You!
stty -F /dev/ttyUSB0 9600 -oddp -cstopb
I also suggest to add sleep 60 after exec ; )
Works fine on raspbian : ) Thank You!
Please Log in or Create an account to join the conversation.
- GandalfDerGraue
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 2
9 years 4 months ago #1264
by GandalfDerGraue
Replied by GandalfDerGraue on topic Linux BASH script for sending to radmon.org
Yeah, looks like there are a dozen of different connection methods and interface settings out there. Thanks for the update!
Please Log in or Create an account to join the conversation.
8 years 10 months ago #1720
by Limpynet
Replied by Limpynet on topic Linux BASH script for sending to radmon.org
I have a problem with sending the information to radmon.org. I use the following script.
No information is send to radmon.org. When i use Minicom to connect to my arduino i get a normal output from my geiger counter.
Does anyone know how to fix this problem.
#!/bin/bash
stty -F /dev/ttyUSB0 9600 -oddp -cstopb
while read -r line < /dev/ttyUSB0
do
if (( $line > 0 )); then
echo CPM = $line
user="user"
password="password"
exec=`wget -O /dev/null "http://radmon.org/radmon.php?function=submit&user=$use$
else
echo CPM = 0
fi
done
No information is send to radmon.org. When i use Minicom to connect to my arduino i get a normal output from my geiger counter.
Does anyone know how to fix this problem.
Please Log in or Create an account to join the conversation.
8 years 10 months ago #1722
by OM1AMJ
Replied by OM1AMJ on topic Linux BASH script for sending to radmon.org
What port settings do you have in minicom?
Try only stty -F /dev/ttyUSB0 9600
(without -oddp -cstopb)
This is what I use
Try only stty -F /dev/ttyUSB0 9600
(without -oddp -cstopb)
This is what I use
Please Log in or Create an account to join the conversation.
8 years 10 months ago #1724
by Limpynet
Replied by Limpynet on topic Linux BASH script for sending to radmon.org
With Minico i use the same setting. I tried to without -oddp -cstopb same problem
Please Log in or Create an account to join the conversation.
3 years 4 months ago #5842
by jardous
Replied by jardous on topic Linux BASH script for sending to radmon.org
Great!
Is there any API to delete last X hours of data? I am currently developing a new client and logged some false data that mess up the graph...
Is there any API to delete last X hours of data? I am currently developing a new client and logged some false data that mess up the graph...
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
Time to create page: 0.164 seconds