Is emoncms down

Is Emoncms.org down?

It stopped accepting data over an hour ago?

 

TrystanLea's picture

Re: Is emoncms down

Hello rmtucker, I've just been working on emoncms.org, its now running a different server configuration but as far as I can see most feeds are unaffected but I can see that your account has stopped. I think it may be your hardware though? can you check that its sending? perhaps give it a reset?

rmtucker's picture

Re: Is emoncms down

Hi

I have reset the hardware but still nothing.

I have just checked my mates account (peternedsmith) and his went down at the same time??

Mark

 

TrystanLea's picture

Re: Is emoncms down

I can now see a number of inactive feeds. although im unsure whats causing the problem. Do you know the api that your using to send the data to emoncms? is it:

http://emoncms.org/input/post.json?node=1&csv=100,200,300&apikey=...
http://emoncms.org/input/post.json?csv=100,200,300&apikey=...
http://emoncms.org/input/post.json?json={power:200}&apikey=...

and what hardware are you using? is it the nanode by any chance?

rmtucker's picture

Re: Is emoncms down

Trystan

I think it looks like the last example?

I will have to check.

The hardware is just an esp8266 module running nodemcu lua code.

 

rmtucker's picture

Re: Is emoncms down

Trystan

Here is an exert from the esp8266

print("Sending data to emoncms.org")
conn=net.createConnection(net.TCP, 0)
conn:on("receive", function(conn, payload) print(payload) end)
conn:connect(80,'80.243.190.58')
conn:send("GET /emoncms/input/post.json?json={windsp:"..count.."}&apikey=3cf5c90696b8a371f5xxxxxxa491ac86 HTTP/1.1\r\n")
conn:send("Host: api.emoncms.org\r\n")
conn:send("Accept: */*\r\n")
conn:send("User-Agent: Mozilla/4.0 (compatible; esp8266 Lua; Windows NT 5.1)\r\n")
conn:send("\r\n")
conn:on("sent",function(conn)
                      print("Closing connection")
                      conn:close()
                  end)
conn:on("disconnection", function(conn)
                                print("Got disconnection...")
  end)
count = 0
end
-- send data every X ms to emoncms
tmr.alarm(0, 10000, 1, function() sendData() end )

rmtucker's picture

Re: Is emoncms down

Trystan

Have you maybe altered the host address 80.243.190.58

 

TrystanLea's picture

Re: Is emoncms down

thats it! the server is now running on nginx with a configuration that means 80.243.190.58/emoncms/input is now 80.243.190.58/input. Il see if I can change the configuration or add a work around

TrystanLea's picture

Re: Is emoncms down

I've changed it back to apache2 until I work out the best solution for this. I can see that the accounts are now posting ok, thankyou very much for posting up with this and helping to find the issue.

rmtucker's picture

Re: Is emoncms down

Trystan

Thanks for that!

I am really suprised that there is no chatter on here about the esp8266.

​It cost me £3.50 and i need nothing else to post data to emoncms.org

I am in the middle of adding a CT clamp to it so here goes.

 

pb66's picture

Re: Is emoncms down

@rmtucker. what version esp8266 are you running? I bought a esp-07 but haven't had time to play with it yet.

Interested to here how you get on. Do you run a local emonCMS server or emonHub? You could consider using a socket interfacer and send packets to a fixed IP/port on your LAN to avoid address issues, enable sending to multiple locations and get your data buffered and re-sent if not delivered first time too. 

Paul

rmtucker's picture

Re: Is emoncms down

Paul

I am currently running an esp-01 just recording wind data.

But it has been re-flashed with the nodemcu firmware,and running a lua program.

It is connected directly to the anemometer and sending data direct to emoncms.org.

Works great for £3.50 and no extra hardware.

This is just a run up to my wind turbine inputs.

I also have an esp-12 which has a 1v analog input which i hope to connect to a ct clamp.

This is getting a little off topic so i will leave it at that.

But just as a footnote it has been running for a good few months with no problems.

Regards

Mark

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.