forked from econpy/torque
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Need help (little understanding of the use of databases):
Before the breakdown by month I used these commands to extract data and put them in Domoticz:
#!/bin/sh
result=mysql -u UTILISATEUR -pMOTDEPASSE torque -N -e "SELECT kff126b FROM raw_logs ORDER BY time DESC LIMIT 1"
echo $result
kmrestant=mysql -u UTILISATEUR -pMOTDEPASSE torque -N -e "SELECT kff126a FROM raw_logs ORDER BY time DESC LIMIT 1"
echo $kmrestant
curl -g "http://192.168.0.21:8080/json.htm?type=command¶m=udevice&idx=376&nvalue=0&svalue=$result"
curl -g "http://192.168.0.21:8080/json.htm?type=command¶m=udevice&idx=377&nvalue=0&svalue=$kmrestant"
Please can you help me to convert using new DB structure?
Thank
Aldo
Metadata
Metadata
Assignees
Labels
No labels