emoncms

i just begin working on emoncms, i want to transmit the data collected by the nanodeRF to web where i can visualise them. i dont know understand the windows installation step4 and 6. for step 4 do i need to do anything cuz i have seen the phpmyadmin is already there in the wamp. for step6, i cannot find the direct htmp directory.

TrystanLea's picture

Re: emoncms

For step 4, you just need to create a new database in phpmyadmin. You need to note the database name, username and password to enter in the emoncms settings.php file.

Does your wamp setup give any information on the name and location of the publicly accessible web folder?

TrystanLea's picture

Re: emoncms

You will also want to set the default engine in settings.php to mysql (easiest to get going but slower)

$default_engine = Engine::MYSQL;

chunyang's picture

Re: emoncms

in step4 it does not give the details about how to create a database, i am very new to this things so actually dont know how to complete step4. 

what is publicly accessible web folder? i remember after i download the wamp and install it on my computer it is very easy cannot remember whether it provides information regard about the publcly accessible web folder

TrystanLea's picture

Re: emoncms

Hello chunyang, I've updated the windows installation guide, does the new additions there help explain it http://emoncms.org/site/docs/installwindows

chunyang's picture

Re: emoncms

thank you for updating. but i am still confused with step 4. since the phpmyadmin is installed with the wamp so that means i do not have to downlaod it again from the official website of phpmyadmin, correct?

u said"To create a database in phpmyadmin, click on Databases at the top, then enter 'emoncms' in the text input box and click create."

click on databases at the top, what is database? is a file called" datatbase" that i can find somewhere inside the phpmyadmin folder? 

chunyang's picture

Re: emoncms

i have created a new database called emoncms as it is shown in the left emoncms. secondly, i click on the icon user that displays the user overview. i click on the "add user" and set up all the username, password ,localhost and accept all privileges( i upload the shortcut of my current setup). and then i unzip the emoncms_master into www folder under wamp and rename it as emoncms, i found the default_setting.php, i opened it with notepad++ and put the username ,password localhost and name of database, also change default enginee:MYSQL,then save it

i type the localhost/emoncms, then it gives me this messge"Can't connect to database, please verify credentials/configuration in settings.php

Error message: Access denied for user 'chunyang'@'localhost' (using password: YES)"

chunyang's picture

Re: emoncms

here is the shorcut of my current set up

TrystanLea's picture

Re: emoncms

Did you get it to work? I cant quite see whats wrong, might be worth trying the root user with password left as blank?

chunyang's picture

Re: emoncms

i stuck on this problem cannot get moved on 

really hurry about this cuz my project is nearly due plz help me ........

Robert Wall's picture

Re: emoncms

Read and understand this thread. It might help: http://openenergymonitor.org/emon/node/2148

I wrote the attached specifically for the NanodeRF, but it covers setting up Wampserver in MS Windows. It was compiled largely from the thread above, with some extra material added.

chunyang's picture

Re: emoncms

i have solved the previous problem. am i am trying to create node 10 for emontxshield

this link http://localhost/emoncms/input/post.json?node=1&csv=100,200,300  gives node 1 but i am sending data from node 10

how do i create node 10?

chunyang's picture

Re: emoncms

i also would like to ask which sketch is suitable for receiving monitored data from emontx shield and send them to emoncms

i am currently running sketch"nanodeRF_coms" for receiving monitored data from my eontx shield but there is nothing displayed in the serial monitor.

 

Robert Wall's picture

Re: emoncms

1. You have just proved something that I have known for a long time - you do not read the things people tell you to read. You have not read my notes (the .odt file), have you?

2. You don't create Node 10. Emoncms does that. What do you think you need to change in the "link" to make it appear that the data comes from node 10 rather than node 1?

chunyang's picture

Re: emoncms

in the .odt file, 

"b. Invent a MAC address for your NanodeRF. It must be unique within your LAN. Put it in here in the Nanode sketch:

// ethernet interface mac address, must be unique on the LAN

static byte mymac[] = { 0x42,0x31,0x42,0x21,0x30,0x31 };"

i dont know how to invent a MAC address, i am guessing it is already built in the chip so what i need to do is just read out the MAC address

"d.Plug in an Ethernet cable to your router, compile and upload the sketch. On the serial port you should see (with possibly a few long waits in between while it times out and retries):"

so the connection should be laptop to emonbase(nanodeRF SMT) to router, upload the sketch to the emonbase, and see the connectivity result in the serial monitor of emonbase, correct?

chunyang's picture

Re: emoncms

in the .odt file, 

"b. Invent a MAC address for your NanodeRF. It must be unique within your LAN. Put it in here in the Nanode sketch:

// ethernet interface mac address, must be unique on the LAN

static byte mymac[] = { 0x42,0x31,0x42,0x21,0x30,0x31 };"

i dont know how to invent a MAC address, i am guessing it is already built in the chip so what i need to do is just read out the MAC address

"d.Plug in an Ethernet cable to your router, compile and upload the sketch. On the serial port you should see (with possibly a few long waits in between while it times out and retries):"

so the connection should be laptop to emonbase(nanodeRF SMT) to router, upload the sketch to the emonbase, and see the connectivity result in the serial monitor of emonbase, correct?

Robert Wall's picture

Re: emoncms

I missed this. chunyang has asked in a PM:

so i am currently able to see the node10 on emoncms.org.i have read through the file from you, but i did not find the difference between the emoncms.org and to a local server.because the same result appeared on emoncms. i am also bit surprised that i have to plug the ethernet cable into my router from the base station. so i just quickly bought  a cable after reading your file.

so without the ethernet cable, the base station is not able to transmit the data to emoncms, right?

You should see exactly the same thing in emoncms, whether it is at emoncms.org or a local copy (provided of course that you have not modified and customised your local copy, which you are free to do, as indeed many people have).

The base needs to be connected to a router for the Ethernet traffic to be routed to the correct place. It makes no difference whether that place is a local server or a distant one. (After all, WAMP is only the same software that a Unix server would run, but inside a Windows wrapper.)

chunyang's picture

Re: emoncms

alright so far i think i have done the measurement, transmission and web part. according to my project, i hope i could add some protective device such as relay. Robert, do you have ideas or tutorials that can help me with the addition of a relay thank you

i got the relay shield (compatible with arduino board so of course the emontx shield as well) i would like to use it if possible

chunyang's picture

Re: emoncms

not sure you have received my  personal message, emoncms,org is running really slow and error pages pop up . is that same happened there?

 

Comment viewing options

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