I'm trying to make a command that sends my computer (Raspberry Pi 3) info to my discord bot.
I've tried searching the same question but can't find anything.
My bot is currently working on the Raspberry Pi and have Node.JS installed.
How would I try and accomplish this?
Take a look at the Node.js documentation on the os module. You might find the "info" you're looking for accessible through it.
The os module provides operating system-related utility methods and properties. It can be accessed using:
const os = require('os');
Related
For my internship I have to create a new framework on ROS2 to control NAO remotely. I have to use Python 3 so I can't use the Python SDK furnished by the constructor because the latest version is 2.7, which makes the things more complex.
My tutor told me to try to use a web server instead. Concretely, the ROS2 message would be sent to a web server and then sent from it to Nao. I succeeded to send them to a server but I don't know how to make Nao understand the message received from the server, and even how to send them.
Do you have any ideas which could help me please ?
Haru.
I am quite new with Nao Robot, but as far as I know, you can use C++ to create a ROS package.
Can you consider this option?
Good luck !
Instead of sending it to a web server, use libQi (either C++ or Python), to connect directly to NAOqi. Note that there is a ROS 1 component for NAOqi already.
In a nutshell, wherever you would use an ALProxy(...) with the NAOqi SDK, instead you would retrieve get a service from a session with session->service(...).
I got my hands on an already deployed yocto system (yocto 2.6.2 - thud) on a board with a NXP i.MX 6UL Cortex-A7. My only possible access at the moment is via wifi. I have access as root via wifi with ssh. The board is embedded into a case which I can't open. So no physical access to that board - just wifi.
My further intention is to setup/deploy/flash my own OS (yocto/debian/etc.) onto this board, but I have no proper knowledge to do so...
Is it even possible to flash a new image only with wifi access?
Which step is the next one I should consider?
Are there any documentations to start with?
Thanks
From your comments, I mention that you have the Variscite DART-6UL module. The producer of your module provides a wiki with lots of information and tutorials on how to start work with. Variscite DART-6UL Wiki
How to build your yocto system
Ready solution for update - SWUpdate Guide
Using SWUpdate is the easiest way to achieve updates for your module.
Custom solution:
Another way is to develop your own mechanism. In this case, you can do developed all processes and make them fully automatic, but it is complicated and required knowledge and experience.
For development boot from the server
For the development time, it can be useful to use booting from TFTP/NFS server. More information here
Other help sources:
Yocto Project - System Update
SWUpdate: software update for
embedded system
Updating Embedded Linux Devices: SWUpdate
Right now I am programming an i2C script to read some pH data from a sensor at work whatsoever. I need to clone something from GitHub but it always says that the server certificate verification failed. When I wanna visit GitHub.com via Chromium it says it has an insecure connection to this site. I can ping the page but neither open it in the browser nor clone something from there. I am using a Raspberry Pi 3B with the newest Raspbian version with a working internet connection via Ethernet (or WiFi, neither creates a problem with any website). My workplace gave me a Certificate to install, if I want to use something else then Microsoft Edge. My thought was, that it is needed on the Raspberry Pi too, but I´m just not able to install it. I´m new to Raspbian programming and I have tried my best to understand the internet forums but I´m at the end of my knowledge. Does somebody know what to do? Or what to change?
Thanks for every answer
Matteo
I've started testing edgeSDK in a prototype IOT environment.
The idea is to connect devices with sensors and other nodes (Raspberry Pi, ESP8266, macOS, etc.) and exchange data or messages between them on the edge, trying to avoid communicating through the cloud.
(I will be also "mirroring" this exchanges in an AWS central cloud environment, to establish some comparisons/evaluations).
At this point, I have edgeSDK running on macOS and the Raspberry Pi and would like to add ESP8266 into the mix.
My Question is:
Can I get ESP8266 to work with edgeSDK? I don't see it listed as a supported platform.
If yes, which OS? (I was thinking about Mongoose, keeping the JavaScript coding and follow the standard).
Any other comments/suggestions or similar references would be very welcome!
ESP8266 is a microcontroller, which edgeSDK does not support. However, you can run a RESTFul API client on ESP8266 to call a API served by a microservice hosted by edgeSDK on a Raspberry Pi for example.
I am a newbie to caldav and server setups and need some specific, detailed help from anyone who knows Darwin caldav.
I installed Darwin caldav server onto my iMac w/ Maverick. I have it up and running in the background. After some fiddling I connected iCal and my iphone to it and they are exchanging info regularly.
I am now trying to connect my Thunderbird calendar to it. When creating the connection, Thunderbird calls for Location. No matter what I enter (comp ip with portals, http foramt of same) Thunderbird won't connect.
I was able to connect through iCal, entering the computer's ip address, 192.168.1.19, but in Thunderbird this address doesn't work. I enter it as a web location, http://192.168.1.19, but still no connection.
Would someone explain how Darwin caldav is spoken to, connected to, what Thunderbird is looking for as far as location, and what I should be entering? As I said, I'm a newbie to this some I would appreciate some explanation of why I would enter things as given, not just what to enter.
Also, while installing Darwin caldav I read that once installed I would connect using a web browser. Is there a separate way to connect to D-caldav directly using some kind of built in gui, or was this just a reference to connecting to it as I am already doing, using a calendar and a web connection?
Thanks.
Thunderbird doesnt seem to support collection discovery (calendar-home), so it needs to be pointed directly to a calendar collection.
According to some other guidelines (e.g. here: http://sabre.io/dav/clients/thunderbird/ or http://oxpedia.org/wiki/index.php?title=SetUpThunderbirdLightningCalDAVClient you need to find out for your server the absolute url to an calendar instead pointing like other clients to the root folder of the server.
http(s)://[domain]/[pathtocalendarfolders]/[username]/[calendarname]/
Hope this helps a little bit.
Best Regards, Hilmar