First steps with jeedom and mqtt


i’ve installed jeedom in a debian virtual machine for test, and add the mqtt plugins, don’t forget to configure the user name and the password and configure the correct network interface

then create a mqtt receiver called « essaialarme » and an info called « test_bis »

from a PC inside the network of the jeedom workstation , type

mosquitto_pub -h 192.168.xyz.zyx -u "login" -P "password" -t essaialarme/pix -m 50

or using python and mosquitto module :

import mosquitto
 
def on_message(mosq, obj, msg):
	print "%-20s %d %s" % (msg.topic, msg.qos, msg.payload)
	mosq.publish('pong', "Thanks", 0)
 
def on_publish(mosq, obj, mid):
	print "published"
	pass
 
cli = mosquitto.Mosquitto()
cli.on_message = on_message
cli.on_publish = on_publish
cli.username_pw_set("login", password="password")
cli.connect("192.168.xyz.zyx", 1883, 60)
cli.subscribe("essaialarme/test_bis", 0)
cli.publish ("essaialarme/test_bis","12345")

 

 

olimex A20 lime2 debian jessie image with 3.4.103 kernel, 2D & H264 acceleration


the current image available here https://www.olimex.com/wiki/A20-OLinuXino-LIME2
is a wheezy version limited to 4gb
– first, i copy the content of this image into a 16gb sdcard and resize the second partition
– boot the A20 LIME 2 card and copy the current kernel (3.4.90) configuration available in /proc/config.gz
– i cross compile the linux sunxi kernel (3.4.103) using the config and activate CONFIG_FHANDLE, because udev will request it during upgrade, for i use a linux mint 17 distro & this tuto https://olimex.wordpress.com/2013/11/05/building-the-ultimate-debian-sd-card-for-linux-with-kernel-3-4-for-a20-olinuxino-micro/
– install the new kernel & module into the sdcard
– edit the /etc/network/interface , to configure eth0 in dhcp and reboot
– edit the the source.list and replace each wheezy occurence by jessie
– apt-get update&&apt-get upgrade&&apt-get dist-upgrade (take many cup of coffee )
– install Xorg acceleration , using the https://linux-sunxi.org/Xorg
– install cedrus acceleration , https://linux-sunxi.org/Cedrus
– reboot
– test with mplayer / mpv & ffmpeg
have fun !

Mini H 250, work in progress


petit H pour du FPV en accrobatique , pour l’instant 250gr sur la balance, réalisé avec les moyens du fablab Orléanais

– bras en sapin épicéa , support moteur en MDF la structure en contre plaqué 5mm
– kit FPV5.8Ghz
– les moteurs sont des BE1806 esc simonk 12A , hélice 5×3
– controleur naze32

du classique donc

photo2photo1

esp8266 flashing with nodemcu firmware (linux debian testing)


flashing the ESP-01 using node MCU

i use this thread http://www.esp8266.com/viewtopic.php?f=23&t=1062#p5963

kadamski « lead the way »

download esp open sdk

first clone the esp open sdk and compile it standalone (take a while), without root because i have access to this
cd /opt/Espressif/nodemcu
git clone https://github.com/pfalcon/esp-open-sdk.git
cd /opt/Espressif/nodemcu/esp-open-sdk
make STANDALONE=y
take a coffee 🙂 after that modify your path env variable
export PATH=/opt/Espressif/nodemcu/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
after that download nodemcu
cd /opt/Espressif/nodemcu/nodemcu-firmware
git clone https://github.com/nodemcu/nodemcu-firmware.git

compile nodemcu

compile  nodemcu using the compiler
cd /opt/Espressif/nodemcu/nodemcu-firmware
make

upload nodemcu to the ESP-01

prepare the firmware and download it
cd /opt/Espressif/nodemcu/nodemcu-firmware
esptool.py elf2image app/.output/eagle/debug/image/eagle.app.v6.out
esptool.py write_flash 0x00000 app/.output/eagle/debug/image/eagle.app.v6.out-0x00000.bin 0x10000 app/.output/eagle/debug/image/eagle.app.v6.out-0x10000.bin
connect minicom to the card (9600baud 8N1) and then reboot the ESP , if its ok you will see that prompt
>NodeMCU 0.9.5 build 20150213 powered by Lua 5.1.4
lua: cannot open init.lua
>

upload init.lua file

works very well

ESP8266 Building Hello World Blink LED and Simple Web Server to drive the Relay and check Button status


Very nice tuto provided by olimex , can be use in parallel with the folowing one https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

olimex

ESP8266

ESP8266-EVB is small 57×50 mm board with Relay and Button which are connected to Internet via ESP8266 WIFI module.

ESP8266 has inside Xtensa106 processor and RF front end circuit, you do not need separate processor to drive the relay and read the button as ESP8266 can be programmed with custom code.

Here we will explain how to setup your tools and make your first project.

First you need to install your tools. It’s simple, just follow the instructions here: https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

There are just few small mistakes as some commands will require SUDO before them and some paths are not exactly same, but you have to follow the steps and once you get error to read and correct the problem.

Here is what we do on Ubuntu 14.04 LTE 64-bit:

sudo apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-amd64 python-serial libexpat-dev sudo mkdir /opt/Espressif sudo chown…

View original post 566 mots de plus