| Author |
Message |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Wed 16 Jan 2013, 05:30 Post subject:
|
|
Dear tenochslb,
The reason your compilation fails is that you are using an older version of BaCon. Newer versions support C-style comments and that is what there is in line 1. Grab build 28 from basic-converter.org and compile it and replace the older version with the new one.
With kind regards,
vovchik
@ Geoffrey:
I think Carolina should have had those symlinks to start with. They are standard in almost every distro. Thanks for point out that little problem.
|
|
Back to top
|
|
 |
tenochslb
Joined: 10 Jul 2010 Posts: 34
|
Posted: Wed 16 Jan 2013, 08:58 Post subject:
|
|
| Quote: | Dear tenochslb,
The reason your compilation fails is that you are using an older version of BaCon. Newer versions support C-style comments and that is what there is in line 1. Grab build 28 from basic-converter.org and compile it and replace the older version with the new one.
|
I just erased those lines and compiled I did polish my translation I will update. Is there a way to retrieve the information in spanish because that would be the only thing missing to have a complete translated software.
Thanks.
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Wed 16 Jan 2013, 09:22 Post subject:
|
|
Dear tenochslb,
I changed the prog entirely to Spanish and had help from a friend from Colombia who visited me a few days ago. Unfortunately, yesterday that disk crashed along with the source code and now I am trying to rescue that partition. It just crashed out of the blue. In any case, I have the translations of the description codes as provided to Yahoo developers in English and my Spanish translation on paper! So it is merely to write that little routine again. It is all done, but, I am now on a bad laptop without a recent GTK, so I cannot compile the BaCon program on it since it doesn't like markup in tooltips. I hope to have my normal computer up and running soon....
With kind regards,
vovchik
|
|
Back to top
|
|
 |
Eyes-Only

Joined: 10 Aug 2006 Posts: 1025 Location: La Confederation Abenaquaise
|
Posted: Thu 17 Jan 2013, 07:59 Post subject:
Subject description: sorry to have read :( |
|
Gee whiz vovchik! Sorry to have read about your recent troubles with your hard drive crashing! I know only too well about computer problems as this is why I have been absent many months from the forum - my motherboard burnt out so badly I needed another machine. I was very lucky in that a friend of mine heads the computer department of the local school system... they are changing to new computers and I was given an older one by him FREE! And this machine is three times the computer that my older one was!
I wished that we were neighbours vovchik as then I would have you come over to my house to go through my "spare parts" bin. I'm sure that you would easily find two or more hard drives to replace the one that you had lost. After all, you've been a good friend to me here who has helped and encouraged me greatly many, many times.
Good luck my friend! -sigh- I wished I could help.
Amicalement/Cheers,
Eyes-Only
"L'Peau-Rouge"
_________________ *~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog.
*~*~*~*~*~*
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Thu 17 Jan 2013, 09:42 Post subject:
|
|
Hello All
Working here in lucid 528. Have tried to run it at start up by using the following script in an executable file called startyweather.
#!/bin/sh
/usr/local/bin/yweather 27730644 c
I have also tried
#!/bin/sh
/usr/bin/roxterm -e /usr/local/bin/yweather 27730644 c
I have it in /start but this does no work at start up. However if I click on this file after boot up it works fine. Don't know enough about this to know what I am doing wrong. I now start it using a desktop icon.
Nice little application. Thanks for this.
Regards,
Ken.
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Thu 17 Jan 2013, 12:02 Post subject:
|
|
Dear Eyes-Only,
Many thanks for your kind words. I have been making some progress. I put my bad drive in a USB external case and after two days of trying, I have now been able to read most everything. Good thing the drive is an old 80 GB job (IBM, made in Thailand in 2002), so there isn't all that much to copy over to another USB terabyte drive I have. The same day that my disk crashed, I switched to my Lenovo Ideacentre (like a Mac Mini), and the Puppy Live CD got stuck in the slot. I heard that was a common problem with that model, and it is impossible to fix no (emergency hole). Since that Lenovo was only 6 months old, I took it to the shop in VIenna where I bought it and hope they will repair it under guarantee. Also that day - the 14th of January - my powered hub burnt out. Not the power supply, but the hub itself. What a day that was!
I am slowly trying to put things back together and appreciate your understanding. Unfortunately, bad stuff happens once in a while
With kind regards,
vovchik
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Thu 17 Jan 2013, 12:57 Post subject:
|
|
| keniv wrote: | Hello All
Working here in lucid 528. Have tried to run it at start up by using the following script in an executable file called startyweather.
#!/bin/sh
/usr/local/bin/yweather 27730644 c
I have also tried
#!/bin/sh
/usr/bin/roxterm -e /usr/local/bin/yweather 27730644 c
I have it in /start but this does no work at start up. However if I click on this file after boot up it works fine. Don't know enough about this to know what I am doing wrong. I now start it using a desktop icon.
Nice little application. Thanks for this.
Regards,
Ken. |
keniv,
Perhaps your IP is not up and ready at that point. Here's a script from mavrothal here
http://murga-linux.com/puppy/viewtopic.php?p=676331#676397
which I've modified slightly for your yweather.
| Code: | #!/bin/sh
IFCONFIG="`ifconfig | grep '^[pwe]' | grep -v 'wmaster'`"
while [ "$IFCONFIG" != "" ]; do
sleep 1
ping -c 1 8.8.8.8
if [ $? -eq 0 ];then
break
else
ping -c 1 www.google.com
if [ $? -eq 0 ];then
break
fi
fi
done
exec /usr/local/bin/yweather 27730644 c |
Cheers,
s
(vovchik: sorry to hear of your trials. It will only make you stronger )
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Thu 17 Jan 2013, 14:54 Post subject:
|
|
Hello seaside
Thanks for your script. I have just tested it and it's working fine. I guess anybody could use it if they changed "27730644 c" to their own woeid code. Thanks again for this.
Regards,
Ken.
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7037 Location: qld
|
Posted: Fri 18 Jan 2013, 20:37 Post subject:
|
|
Hello vovchik,
I downloaded yweather source and upgraded bacon. Compiled fine.
I get the same error mavrothal reported so I wgetted the XML to investigate why and no sooner the problem rectified itself. . I just wanted to see if it's some minor error in your XML parsing routine or some error in the source XML.
Anyway, I'll see if I can reproduce and investigate some other time.
Nice app!
Cheers
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Sat 19 Jan 2013, 06:44 Post subject:
|
|
Dear 01micko,
Yep, it is a weird little problem for some sites, and they do fix themselves! I parse using the xml description given on the Yahoo developers' site: http://developer.yahoo.com/weather/. I think some remote sites occasionally submit their xml reports with errors in the xml, and that is the reason we get the "markup" error. It could be also that I am not parsing something properly. If you find out what occasionally goes wrong, please let me know. At the moment, my "development" computer is down (ugly disk crash), but I managed to recover the data and saved to another drive. I have changed the program already for the Spanish translation and only look at the description codes and not the text provided, which sometimes diverges from Yahoo's official description. It is safer just to use the description code and to use that to get the official text string, rather than using the supplied text string in the xml. That change will be implemented in my next revision. If you have a nice parsing routine, please post it!
With kind regards,
vovchik
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Sat 19 Jan 2013, 10:23 Post subject:
|
|
Hello All
I have noticed over the last few days that the pressure reading on the display has not changed from 982.05 mb. I live within 6 miles of an airport and can listen to the radio volmet. The pressure is varying and is currently 1004 mb. All the other information seems to vary. I wonder if anybody else has noticed the pressure does not appear to update.
Regards,
Ken.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2121 Location: World_Hub
|
Posted: Sun 20 Jan 2013, 23:08 Post subject:
|
|
Vovchik, nice coding- thanks. Multiple locations- works a treat.
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 21 Jan 2013, 05:58 Post subject:
|
|
Dear tenochslb,
I sent you a PM with my revised Spanish source. Please have a look and, where needed, kindly fix it.
With thanks and kind regards,
vovchik
|
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 936 Location: Queensland Australia ɹǝpu∩uʍop
|
Posted: Mon 21 Jan 2013, 16:50 Post subject:
|
|
| vovchik wrote: | @ Geoffrey:
I think Carolina should have had those symlinks to start with. They are standard in almost every distro. Thanks for point out that little problem. |
I will see that this is rectified for the next release of Carolina.
Your yweather app is a good replacement for the xfce panel weather plugin,
which I find to be limited as it will not display my location,
only the closest major city which is 300kilometers from me.
Cheers,
Geoffrey
_________________ AdobeAIR App Links: HERE
Carolina: Recent Repository Additions
Last edited by Geoffrey on Mon 21 Jan 2013, 18:00; edited 1 time in total
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 21 Jan 2013, 17:10 Post subject:
|
|
Dear Geoffrey,
I am glad yweather can be used to some advantage. My compile line for that:
| Code: | | bacon -o -s -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections yweather.bac |
results in a pretty small binary. That strips out all uneeded symbols and functions. After that, I UPX the binary to cut the size in half.
You might want to do that in order to keep things small. I used the latest bacon build (0.2 , since it knows the C-style extended comments directive.
With kind regards,
vovchik
|
|
Back to top
|
|
 |
|