more G-Labs products

Author Topic: Arduino Serial Data  (Read 2006 times)

January 09, 2015, 09:47:22 PM
Read 2006 times

StatX

  • **
  • Information
  • Jr. Member
  • Posts: 30
Hi there,

I've made a communication betwean Arduino and my PC running arduino ( tomorrow i will try to di it with Rpi ) i am sending data ( Pressure, Humidity and 2 temperatures ). Is there any way to show those values on dashboard in some nice widget ? I didnt find anything to solve my problem.

Thank You in advance.

January 10, 2015, 03:16:27 AM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I have no idea how to build widgets yet, but I know the DHT11/DHT22 code includes a widget to display the temperature/humidity in the interface.  Perhaps that would get you 90% of the way there?

January 10, 2015, 07:20:25 PM
Reply #2

StatX

  • **
  • Information
  • Jr. Member
  • Posts: 30
yes i know that widget i also was able to make it working but its not my intention to connect sensors directly to Rpi i want to use Arduino and send data by UART to Rpi with HG.

January 10, 2015, 09:39:02 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I wasn't suggesting you use the widget directly.  I was suggesting that you could use the widget as a base for your new widget. 

January 11, 2015, 07:14:29 PM
Reply #4

StatX

  • **
  • Information
  • Jr. Member
  • Posts: 30
ok i miss understood i will try it

March 06, 2015, 03:50:39 PM
Reply #5

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
I want to do this as well.  I got my arduino sending temperature data to the HG serial helper (running on pc).  Now I would like to display this on homepage, even better with a graph.  Long term I would like a big graph showing temp and status of various arduino sensors over past 24 hours. 

Eventually I want to get my arduino networked but my ethernet shield does not seem to work :-(  So I tried with serial connection and quickly see the data popping up as notifications in HG.

If I want to create an arduino module, do I have to extend the SerialPort class somehow?  I tried renaming the SerialPort to Arduino, and "Arduino" is not recognized.

Thanks!

March 06, 2015, 06:13:15 PM
Reply #6

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Since this question was originally posted, Gene has added a widget editor into the main HG web interface.  I have not updated yet, but I believe it's pretty close to the tool Gene shared on the HomeGenie.it page.  I think it would be pretty helpful in the OP's goal of adding a widget if it were based on the DHT11/22 widget since it could be duplicated and modified.