Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Brultech - Sending GEM data to local emoncms

Featured Replies

Posted

I installed emoncms locally.  Is there a way to send GEM data via NodeLink to my local emoncms instead of emoncms.org?

 

thanks,

marty

 

  • Author

I got it to work (partially) by adding emoncms.org to the local host line in /etc/hosts.

 

127.0.0.1 localhost

::1 localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

 

127.0.1.1 raspberrypi emoncms.org

 
And also moving /var/www/html with /var/www/emoncms.  Note that adding index.php to /var/www/html to redirect to emoncms was not sufficient.
 

pi@raspberrypi:/var/www $ cd /var/www/

pi@raspberrypi:/var/www $ sudo mv html html.old

pi@raspberrypi:/var/www $ sudo mv emoncms html

pi@raspberrypi:/var/www $ sudo service apache2 restart

 

I think adding a emoncms URL to NodeLink would be a better solution.

 
Now NodeLink is sending data to emoncms, but each data push creates a new input.
 
  • Author

I think the duplicate inputs could be related to the latest stable emoncms, which not requires a "node" parameter with the PUT request.  See https://openenergymonitor.org/emon/node/6315.  Although that discussion is from 2014.

 

I think this too could be fixed by allowing a emoncms URL, like btmon does:

 

emoncms_url=http://emoncms.org/input/post

 
or for local
 
  • Author

I've verified that NodeLink is not sending a node id, which emoncms interprets as a blank.  This causes emoncms to create a new input for each channel when it receives data.

 

I modified emoncms to check for a blank node id, and default to 0.  That seems to have fixed the problem.

 

I think NodeLink should add a user parameter to select a node id for the GEM.  That way if multiple GEMs are sending data to emoncms, they can all have unique IDs.

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.