Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • Send message for another node.

    6
    0 Votes
    6 Posts
    4k Views
    J
    @hek I am currently trying to send a message from one node to another, but am facing some trouble with it. I have two nodes, both of them with Motion Sensors attached to them. I want one node to send a message to the other node when there is motion detected. On the other node, the received message should be saved in a variable. Looking through other posts I wasn't capable of finding an example I could modify for my purposes. I know there is this function for receiving messages: void incomingMessage(const MyMessage &message) but how do I continue? Also, how to send a message? Can you pls give me example code for that?
  • Button Dimmable LED Actuator

    3
    0 Votes
    3 Posts
    1k Views
    M
    @Francois Thanks! This project just made my day!
  • all the gear, no idea

    vera gateway newbie help
    10
    0 Votes
    10 Posts
    5k Views
    B
    @maltimus - thanks, I can see the picture. frstratingly I have the Vera Edge though!
  • Use IFTTT to get email updates for new thread entries!

    7
    0 Votes
    7 Posts
    4k Views
    hekH
    Great. Might as well mention push notifications if you prefer that: http://forum.mysensors.org/topic/472/push-notifications/5
  • 0 Votes
    3 Posts
    2k Views
    M
    @Xander Thank you for making this clear.
  • How can I build my custom nodes

    3
    0 Votes
    3 Posts
    1k Views
    msamy.earthM
    thanks :smiley:
  • [closed] How to differentiate Arduino Pro Mini 3v3 and 5v?

    5
    0 Votes
    5 Posts
    3k Views
    funky81F
    Thanks guys for your replies...I'll try it one by one. Thanks
  • The Big Picture. Will this work?

    9
    0 Votes
    9 Posts
    3k Views
    tbowmoT
    @dakky look here http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors
  • migrate to cc1101..

    4
    0 Votes
    4 Posts
    2k Views
    D
    rf69 look very good .. big tx tower , hardware security etc.. but ho to use with MySensors , who have schematic , code example ..etc.. is possible buy this in eu? or in slovakia or czech republik?? regards .. 868mhz or 433mhz
  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    bjornhallbergB
    Interesting. Would be fantastic if MySensors would get more attention (and funding). Classic click-bait journalism by IDG through. They make it sound like anyone with a breadboard is basically eligible for a stipend, while it is be targeted at Hacker / Makerspaces. I think there are 10-15 of these places in Sweden right depending on how you count? So if that is the criteria there should be plenty of money to go around. To be completely honest though I'm not sure most of these places are innovative enough to warrant any interest. But I guess that at the rate that governments are spending money anyway, it's great that Makerspaces get a slice of the pie finally. There are surely worse ways to spend taxpayers' money.
  • Issues with sensors being included

    1
    0 Votes
    1 Posts
    702 Views
    No one has replied
  • Liion batteries

    19
    0 Votes
    19 Posts
    10k Views
    axillentA
    @allanvbcrew will recommend XC6206P332MR you will need just 2 x 1uF ceramic capacitors it is stated that quiescent current is about 1uA maximum input voltage is 6V
  • Over the air updates

    87
    1 Votes
    87 Posts
    50k Views
    skywatchS
    I would really like to get OTA working here as it's freezing outside and I have to go there to update the software in the greenhouse control system. So please, can we have a 'how to' step-by-step guide to OTA? Please? S.
  • MySensor Github Contribution

    3
    0 Votes
    3 Posts
    1k Views
    funky81F
    @celonunes thanks
  • Actuators on the MQTT gateway digital pin arduino mega/Uno

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Just starting out have a question

    gateway newbie
    5
    0 Votes
    5 Posts
    2k Views
    ChaoticC
    slight bump to this topic rather than starting a new one since I have some more questions Are there any example sketches for setting variables on a node? Thinking I'd want at least 2 variables. Is there a proper way for a node to report time to the controller or other nodes? This one will be powered 100% of the time so responding to messages shouldn't be a problem. I'm pretty sure I know the answer to this one but best way to set up a sketch to report the temp every X when it isn't the main function of the node. Thanks in advance.
  • IoT starter kit unveiled by ARM and IBM

    iot internet of thi
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Ardunio SD Card data Store

    3
    0 Votes
    3 Posts
    1k Views
    S
    #include <SD.h> #include "DHT.h" #include <Wire.h> #include "RTClib.h" #include "DS1307.h" #define DHTPIN A0 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); DS1307 clock; // declare object for DS3234 class const int chipSelect = 10; void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } Serial.print("Initializing SD card..."); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT); // see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("card initialized."); // create a new file char filename[] = "LOGGER00.txt"; for (uint8_t i = 0; i < 100; i++) { filename[6] = i/10 + '0'; filename[7] = i%10 + '0'; if (! SD.exists(filename)) { // only open a new file if it doesn't exist break; // leave the loop! } } Serial.print("Logging to: "); Serial.println(filename); // Enter the time and date when flashing the program clock.begin(); clock.fillByYMD(2015,2,15);//Feb 15,2015 clock.fillByHMS(22,55,30);//19:05 30" clock.fillDayOfWeek(SUN);//Sunday clock.setTime();//write time to the RTC chip } void loop() { // Reading temperature or humidity takes about 250 milliseconds! // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor) float h = dht.readHumidity(); float t = dht.readTemperature(); delay(60000); // wait one second (1000) before do it again (60 sec =1 min) 60 *1000 //Time stamp for your program printTime(); // check if returns are valid, if they are NaN (not a number) then something went wrong! if (isnan(t) || isnan(h)) { Serial.println("Failed to read from DHT"); } else { Serial.print("Humidity: "); Serial.print(h); Serial.print(" %\t"); Serial.print("Temperature: "); Serial.print(t); Serial.println(" *C"); } } void printTime() { clock.getTime(); Serial.print(clock.hour, DEC); Serial.print(":"); Serial.print(clock.minute, DEC); Serial.print(":"); Serial.print(clock.second, DEC); Serial.print(" "); Serial.print(clock.month, DEC); Serial.print("/"); Serial.print(clock.dayOfMonth, DEC); Serial.print("/"); Serial.print(clock.year+2000, DEC); Serial.print(" "); Serial.print(clock.dayOfMonth); Serial.print("*"); switch (clock.dayOfWeek)// Friendly printout the weekday { case MON: Serial.print("MON"); break; case TUE: Serial.print("TUE"); break; case WED: Serial.print("WED"); break; case THU: Serial.print("THU"); break; case FRI: Serial.print("FRI"); break; case SAT: Serial.print("SAT"); break; case SUN: Serial.print("SUN"); break; } Serial.println(" "); } list item
  • thethingbox

    nodered mqtt
    4
    0 Votes
    4 Posts
    3k Views
    M
    I have a project going with openhab and thethingbox. I only use Mqtt with a combination of nrf24l01 and esp8266 modules. thethingbox server is simply used as a catch all for all mqtt messages from sensors or openhab. i parse all the message coming into ththingbox and take action depending on the message. If my door or window sensor is tripped a message is sent to Twitter. I also send temp and humidity readings to thingspeak and my cell phone reports long and lat coordinates to thingspeak so that my lights can come on as I approach the house. My next project is to setup ip cameras and motion sensors and sent pics to drop box. Openhab is really not hard, you just have to keep at it, once you get it you will kick yourself for over complicating it Mike

12

Online

11.7k

Users

11.2k

Topics

113.0k

Posts