champ1
Posts: 26
Joined: Tue Jul 17, 2018 12:36 am

Getting Started in Android APP with Raspberry Pi

Fri Jul 27, 2018 1:51 pm

Hello everyone

I am an absolute beginner I want to test sample project on my raspberry with smartphone. and I tried to follow the tutorial on Github

I have downloaded this github project https://github.com/sedusa/raspi-ionic-iot

I have already installed nodejs server on raspberry 3

Code: Select all

[email protected]:~ $ cd /home/pi/Downloads/raspi-ionic-iot-master
[email protected]:~/Downloads/raspi-ionic-iot-master $ ls -l
total 32
-rw-r--r-- 1 pi pi 18047 Sep  8  2015 LICENSE
drwxr-xr-x 2 pi pi  4096 Sep  8  2015 raspi-iot
-rw-r--r-- 1 pi pi  4672 Sep  8  2015 README.md
[email protected]:~/Downloads/raspi-ionic-iot-master $ cd raspi-iot
[email protected]:~/Downloads/raspi-ionic-iot-master/raspi-iot $ npm install
(node:1632) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
|
> [email protected] install /home/pi/Downloads/raspi-ionic-iot-master/raspi-iot/node_modules/onoff/node_modules/epoll
> node-gyp rebuild

make: Entering directory '/home/pi/Downloads/raspi-ionic-iot-master/raspi-iot/node_modules/onoff/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
  SOLINK_MODULE(target) Release/obj.target/epoll.node
  COPY Release/epoll.node
make: Leaving directory '/home/pi/Downloads/raspi-ionic-iot-master/raspi-iot/node_modules/onoff/node_modules/epoll/build'
[email protected] node_modules/onoff
└── [email protected] ([email protected], [email protected])

I am getting error in this step

Code: Select all

[email protected]:~/Downloads/raspi-ionic-iot-master/raspi-iot $ sudo wget https://dl.ngrok.com/ngrok_2.0.19_linux_arm.zip
--2018-07-27 13:38:37--  https://dl.ngrok.com/ngrok_2.0.19_linux_arm.zip
Resolving dl.ngrok.com (dl.ngrok.com)... failed: Name or service not known.
wget: unable to resolve host address ‘dl.ngrok.com’

Can someone help to getting with this error how to fix error ?

User avatar
topguy
Posts: 4855
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Getting Started in Android APP with Raspberry Pi

Fri Jul 27, 2018 1:58 pm

go to ngrok homepage and look for new download link maybe..

https://ngrok.com/download

champ1
Posts: 26
Joined: Tue Jul 17, 2018 12:36 am

Re: Getting Started in Android APP with Raspberry Pi

Fri Jul 27, 2018 3:53 pm

topguy wrote:
Fri Jul 27, 2018 1:58 pm
go to ngrok homepage and look for new download link maybe..

https://ngrok.com/download
correct Terminal show message "server running on 8088"

But I done the biggest mistake. I was following the wrong project. I don't want to use third party APP. I want to make my Own APP that will turn on/off Led via web. i think it will good start.

I seen the forum post Ionic Framework use to create a simple app that turns on an LED. so I followed that project. I misunderstood by reading the top line of page

Return to “Android”

Who is online

Users browsing this forum: No registered users and 4 guests