maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Smartcam Maemo 5 Port - Now with more Qt (https://talk.maemo.org/showthread.php?t=71452)

handaxe 2011-04-15 07:18

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
Quote:

Originally Posted by Bratag (Post 988784)
Are you running as root. A quick strace of the app reveals that when you hit save it tries to open the conf file and gets a permission denied. However the error is not caught and returns a successful.

An easy way around this is go open an xterm

cd /opt/smartcam_m5/bin
touch smartcam_m5.conf
chmod 777 smartcam_m5.conf

I still cannot get load to work, even the right permissions, which like Bratag I expected to work. I also placed a conf file in the opt/smartcam_m5/bin folder - no go. It is a plain text file right, not xml?

BTW, the conf file may be better placed in home/user/.config/smartcam_m5/??

azkay 2011-04-15 07:35

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
the conf just has
<smartcam>ip:port</smartcam>

Once I figure out how to add a package manager icon to it ill be able to upload right to extras-devel, should be easier to sort out then.

handaxe 2011-04-15 07:45

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
Quote:

Originally Posted by azkay (Post 988829)
the conf just has
<smartcam>ip:port</smartcam>

Another wrinkle: when I do get a conf file generated (by starting smartcam-m5 from the CLI), there is no <smartcam> </smartcam>, just plain text ip : port.

mrwormp 2011-05-12 18:46

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
has anybody gotten this to work since the update. also when enter the ip address and click start is asking about internet connection.

Ok finally got it to work, just need to fix the issue with saving the conf file since each time i start the program i have to re enter it

handaxe 2011-05-27 23:44

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
Is Azkay still with us? Good wishes to him either way....

momcilosystem 2011-05-28 06:54

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
First I want to thank Azkey for porting this wonderful app to maemo!

Second, I think I figured out what's wrong with save. When you start smartcam from cli with:
Code:

/opt/smartcam_m5/bin/smartcam_m5
You can see that it complains that there is no "smartcam_m5.conf" file, which led me to to think that this would work:
Code:

cd /opt/smartcam_m5/bin
./smartcam_m5

And it works!

So, my guess is that Azkey just need to change code to look in app folder for a .conf file or just say what is default working folder for SmartCam so we can just copy .conf file there (I tried /home/user without success).

Thanks again Azkey!

P.S. SmartCam reads .conf file as is. So, no <smartcam></smartcam> needed.

xxxxts 2011-07-17 05:59

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
LOADING/SAVING FIX:

Code:

cd /usr/share/applications/hildon
leafpad  smartcam_m5.desktop

192.168.1.2:9361 and save then change

Code:

/opt/smartcam_m5/bin/smartcam_m5
to

Code:

/opt/smartcam_m5/smartcam_m5
then

Code:

leafpad  /opt/smartcam_m5/smartcam_m5
insert and save

Code:

cd /opt/smartcam_m5/bin
./smartcam_m5

:D

maartenmk 2011-07-18 18:48

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
@xxxts: I think the instructions contain a typo. Are we supposed to change exec=/opt/smartcam_m5/bin/smartcam_m5 in the .desktop file, and enter ip address:port in the .conf file?

HtheB 2011-07-18 19:25

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
Why isn't this in the repos!? :O

momcilosystem 2011-07-19 19:55

Re: [Announce] Smartcam Maemo 5 Port - Now with more Qt
 
What a neat little fix.
Nicely done xxxxts.
We aren't actually running smartcam binary via icon, but instead we are running newly created script in /opt/smartcam.

And yes, as maartenmk stated, there is indeed a typo with 'Exec' part and the IP address is ... somewhat lost ;)


I presume this is how you meant to say it
(not trying to take credits for your work, just want to clarify it) :


LOADING/SAVING FIX (as root) :


Code:

cd /usr/share/applications/hildon
leafpad  smartcam_m5.desktop

find and change this line

Code:

Exec=/opt/smartcam_m5/bin/smartcam_m5
to

Code:

Exec=/opt/smartcam_m5/smartcam_m5
then

Code:

leafpad  /opt/smartcam_m5/smartcam_m5
insert this and save:

Code:

cd /opt/smartcam_m5/bin
./smartcam_m5

I think we should give it executable attribute with:

Code:

chmod +x /opt/smartcam_m5/smartcam_m5


(optionally) if you want to add .conf file manually:

Code:

leafpad /opt/smartcam_m5/bin/smartcam_m5.conf
insert ip and port and save (e.g.) :

Code:

192.168.1.2:9361
:D


All times are GMT. The time now is 21:09.

vBulletin® Version 3.8.8