Giter VIP home page Giter VIP logo

Comments (24)

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

Getiteasygithub avatar Getiteasygithub commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

Getiteasygithub avatar Getiteasygithub commented on June 28, 2024

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.

Getiteasygithub avatar Getiteasygithub commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

qdsang avatar qdsang commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

@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.

qdsang avatar qdsang commented on June 28, 2024

@marcoschwartz tks!

from arest.

lonneg avatar lonneg commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

It should simply be:

npm install arest

But apparently there are issues with Windows, I am investigating that at the moment.

from arest.

lonneg avatar lonneg commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

Interesting. Do you know why you need to install Visual studio specifically? For sure I'll add this into the documentation.

from arest.

lonneg avatar lonneg commented on June 28, 2024

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.

equihuam avatar equihuam commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

lonneg avatar lonneg commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

lonneg avatar lonneg commented on June 28, 2024

No, there are no javascript errors in the browser console. I am using Chrome for a browser.

from arest.

lonneg avatar lonneg commented on June 28, 2024

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.

lonneg avatar lonneg commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

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.

lonneg avatar lonneg commented on June 28, 2024

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.

marcoschwartz avatar marcoschwartz commented on June 28, 2024

Excellent! Closing the issue :)

from arest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.