Posts

Showing posts from October, 2018

How to run microPython in ESP-WROOM-32 module

Image
If you have an ESP-WROOM-32 module, you can use Zerynth Studio to upload your microPython code. You can download it from  https://downloads.zerynth.com/zerynth.tar.xz See the following video to do it Probably you could have the following issue after click the uplink icon: [error] Can't open serial: /dev/ttyUSB0 To fix this error it is enough to change the permissions of access to the terminal: sudo chmod 666 /dev/ttyUSB0 Another issue is when you try to upload the code and you get the following error: [error] No answer to probe To fix it, you must virtualize your device. After to do that, you could upload your code and get the following output: info] Probe sent [info] Got header: r2.1.2 SxTxJKbAQFaaRCayjua5sw esp32_devkitc 42504c29f107 ZERYNTH [info] Found VM SxTxJKbAQFaaRCayjua5sw for esp32_devkitc [info] Handshake [info]     symbols: 3 [info]     membase  @3FFC24A4 [info]     romstart @40150000 [info]     flash    @00080000 [info] Erasing flash [i

Get raster values for points in a map with QGIS

Image
To get raster values you need to install "Point sampling Tool" from plugins list. Next, you must create a layer with points over the pixels from your raster layer. If you click on "Point sampling Tool" icon or from Plugins/Analyses option you would get raster values from each vectorial points. As you see in the image, each point is in a different raster color, therefore each one has an own value. Enjoy!

How to install Qgis3.2 + Grass7 + PGAdmin4 + Postgres11 + Postgis2.5 in Ubuntu Bionic

To start the installation, you must to add the following lines to your /etc/apt/sources.list file: # qgis deb http://qgis.org/debian bionic main deb-src http://qgis.org/debian bionic main # pgadmin4 deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 11 Now, you need to get the repositories keys with the following sentences: # qgis gpg --keyserver keyserver.ubuntu.com --recv CAEB3DC3BDF7FB45 gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add - # pgadmin4 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - Now, proceed with installation: sudo apt-get update sudo apt-get upgrade sudo apt-get install postgresql postgresql-contrib postgresql-11-postgis-2.5-scripts pgadmin4 qgis python-qgis qgis-plugin-grass -y To configure postgres, we procced to create a database with a postgres user: sudo -u postgres createdb testing psql -d testing -c "create extension postgis" Probably you will get the followin

Fix VirtualBox - RTR3InitEx failed with rc=-1912 (rc=-1912)

Image
If you try to install a new VirtualBox version, maybe you would have this issue: In my case, I had VirtualBox 5.0 and I also installed version 5.2 Now, the only version that exists is PUEL (Oracle version). For that reason, you need to remove choose between OSE (older version) or PUEL (new version). In my case I choose OSE. To fix it, just run in your terminal these commands: dpkg -P virtualbox-dkms sudo apt-get install virtualbox-dkms virtualbox-guest-additions-iso Enjoy!