Comments (24)
Hello! Can you tell me from which article you got the code from? Also, can you tell me exactly which hardware you have & which Arduino IDE you are using?
Also, be sure to have the latest version of aREST & of the CC3000 library.
from arest.
Hello,
Yes I use Arduino IDE 1.06 and i use a Arduino Micro and the cc3000.
The Tutorial is from http://www.openhomeautomation.net/arduino-wifi-cc3000/
from arest.
Ok, got it now :) I guess the problem comes both from the IDE 1.0.6 (try 1.5.7 from http://arduino.cc/en/Main/OldSoftwareReleases) and from the Arduino Micro, which is not officially supported by the library. So I would try either changing the IDE or using an Uno or Mega board. I am working on really adapting the library to Arduino Micro & similar, but it is not that easy.
from arest.
I have the same on 1.58 and i don´t testet it on my Mega because it doesn´t compile. now i look on 1.5.7.
Thanks for your Help.
from arest.
Ok, it runs very well on my Mega. A great piece of software. It would be great to change variables during the process of the sketch. So I can set a variable in the sketch. And I can this free for all, complicated or not, use. But it does not work for me. It is possible that this is my fault. But I do not know. I do not know how the right way. I use the "wifi-CC3000 Sketch" to learn to understand it. But I get this not to work. I sent the URL "http://" The Arduino ip "/temperature But nothing comes back. Now I'm looking for a tutorial for chancing variables...
Or someone who described it to me. many thanks
from arest.
Great! For changing the variable with a call, I am thinking about it, but it would be only possible on boards like the Mega, Due, etc. For sure the little Uno won't have enough memory to support such functions.
For your problem, I am sure you are doing the right thing. Does the board reboots when you try to get the temperature variable? Can you try a simple:
http://arduino_ip/id
And see if something comes back.
from arest.
In file included from WiFi_CC3000.ino:12:0:
/Users/qdsang/Documents/Arduino/libraries/aREST-master/aREST.h: In member function 'void aREST::handle(Adafruit_CC3000_ClientRef&)':
/Users/qdsang/Documents/Arduino/libraries/aREST-master/aREST.h:146:12: error: 'class Adafruit_CC3000_ClientRef' has no member named 'stop'
client.stop();
^
from arest.
@qdsang this sounds like an issue with the CC3000 library, make sure to update it to the latest version. The current version indeed has a client.stop() function:
void Adafruit_CC3000_Client::stop(){
close();
}
Let me know if that works!
from arest.
@marcoschwartz tks!
from arest.
What is required to install the module arest with npm? I can install express and jade with the command npm install. I am using windows 7. The error message seems to imply I need visual studio.
from arest.
It should simply be:
npm install arest
But apparently there are issues with Windows, I am investigating that at the moment.
from arest.
I finally found the solution to installing arest on a windows 7 computer. You have to install Visual studio express 2010 and SDK. The 2010 express is the free version but is 32 bit, NOT 64. You then have to download the 32 bit version of Node.js
from arest.
Interesting. Do you know why you need to install Visual studio specifically? For sure I'll add this into the documentation.
from arest.
It requires Visual C++ and the software development kit (SDK). I was able to find this out by many Google searches of the error codes generated after npm install of arest. I am having another problem when i run node app.js. I have updated the ip address in app.js to match the ip address generated when I run the weather station code in my arduino cc3000 combination. It says "error adding the device". I would appreciate any suggestions. I am almost finished on this project.
from arest.
I am having the same issue pointed out by @lonneg: "error adding the device". I am using node.js and following the same example mentioned by @Getiteasygithub about your article on Open Home Automation. I get this output about this when running node app.js
:
Sending request to address: 192.168.1.68 for variable id
Error adding the device
I also notice that the output directly from the arduino uno is something like this (I edited a little bit the code to shorten names):
{"temp": 20, "id": "1", "name": "WS
Which looks incomplete and I don´t know why. I did eliminate most of the output to the serial port, because I had a problem of memory with global variables using 74% of the space!!!!! Was the only significant change to the code that I did. Eliminating those lines let the arduino uno upload like this:
Sketch uses 29,320 bytes (90%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,530 bytes (74%) of dynamic memory, leaving 518 bytes for local variables. Maximum is 2,048 bytes.
from arest.
This looks like an issue due to the latest versions of the Arduino IDE. Make sure to have the latest versions of all libraries (aREST, CC3000) and also use Arduino IDE 1.5.7. It is annoying & I hope Arduino will come up with a more stable version soon.
from arest.
The new libraries aREST and CC3000 fixed up the problem with adding the device. The only problem I have now is I can't get the temperature or humidity data from the arduino. The browser shows the Temperature and Humidity text but no data. The device reports "Online". I am using Arduino IDE 1.5.8
I really appreciate your help.
from arest.
One thing to do now would be to see if there are any Javascript errors. Open the console in your browser and let me know if you see any bad stuff in there :)
from arest.
No, there are no javascript errors in the browser console. I am using Chrome for a browser.
from arest.
Upon further checking under the network tab, the status is reporting http://1.1.304 "not modified". This occurs every time a 'Get http;//local host:3000/weather_station/humidity or temperature' is sent.
Hope this helps.
from arest.
I am still struggling with this application. Could you tell me which javaScript file or program is writing the temperature and humidity data to my web server. I can see that data is being passed from the arduino by seeing it in the javaScript console. I should also point out that the units of measure are not getting to my web page (% or C). I would really appreciate any help you could give me as I feel very close to completing this project.
from arest.
There is basically only one JavaScript file that queries the board for data, which should be located in the public/js folder of the app.
from arest.
Thanks for your help. I just installed the DHT11 sensor today and the data and engineering units began working on my web browser.I didn't have this sensor at the time and didn't think it would affect the engineering units, and mavbe the data would show up as some negative value.Anyway it works great.
from arest.
Excellent! Closing the issue :)
from arest.
Related Issues (20)
- arest.io problem HOT 3
- output pin set to low at startup
- Issue with multiple Custom functions
- Unable to create a new account HOT 2
- Request example sketch for local use of API key HOT 1
- function name gets confused after 6 characters HOT 1
- 'class aREST' has no member named 'get_topic' HOT 3
- Limitations HOT 1
- ethernet_cloud sketch don't run HOT 2
- https://dashboard.arest.io/devices is not providing any way to add devices HOT 1
- Why is support for text and float variables restricted?
- aREST using UIPEthernet stack failed HOT 1
- Multiple warnings ISO C++ forbids converting a string constant to 'char*' [-Write-strings]
- To support Ethernet2.h library, this should be "ethernet_h"
- Does aREST support the Arduino Uno WiFi r2 Board ? HOT 4
- ESP8266WiFi.h: No such file or directory compilation terminated.
- rest.function() bug: command is improperly passed to function
- How to force send a HTTP 200 command in a rest.function
- CONTROLLINO MAXI AUTOMATION WITH AREST
- Freezes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arest.