I wrote an Openhab-to-Thingspeak bash script

#Habspeak
I wanted data redundancy available online so using the OH REST api and cURL I wrote a bash script to export my OH items (last state) to a Thingspeak channel every 15 minutes (script writes info to file in local directory which you can add to crontab).

Requirements

  • thingspeak channel established (write API key)
  • openhab item names
  • ability to query OH server using OH REST

Please see my repo for the script

3 Likes