Re: [plug] interview with howie severino

2015-04-07 Thread fooler mail
hi obet,

been busy lately but here is your python script (see email attached
also) using matplotlib...

$ cat -n wesm.py
 1  #!/bin/env python
 2
 3  from urllib2 import urlopen
 4  from datetime import datetime, timedelta
 5  from  matplotlib import pyplot as plt
 6
 7  dem_target = 7000
 8  lwap_target = 2000
 9
10  today = datetime.today()
11  date = (today - timedelta(days=int(not
bool(today.hour.strftime('%Y%m%d')
12  hour = today.hour + 24 * int(not bool(today.hour))
13
14  url = 
urlopen('http://www.wesm.ph/chart/export/luzon_dmd_csv_export.php?date='
+ date + '&hour=' + str(hour).zfill(2))
15  luzon_str = url.read().replace('\n', ',' + str(dem_target) +
',' + str(lwap_target) + '\n').replace(' ','').splitlines()[1:25]
16
17  # HOUR, DEM_DAPEL, DEM_RTDEL, DEM_RTXEL, LWAP_DAPEL,
LWAP_RTDEL, LWAP_RTXEL, DEM_TARGET, LWAP_TARGET
18  luzon_data = [list(row) for row in zip(*[[float(column or
'nan') for column in row.split(',')] for row in luzon_str])]
19
20  plt.plot(luzon_data[0], luzon_data[7], 'r.-', label='Target')
21  plt.plot(luzon_data[0], luzon_data[1], 'y.-', label='Day Ahead
Projection (DAP)')
22  plt.plot(luzon_data[0], luzon_data[2], 'c.-', label='Hour
Ahead Projection (RTD)')
23  plt.plot(luzon_data[0], luzon_data[3], 'b.-', label='Current
Demand (RTX)')
24  plt.title('Luzon Market Demand - ' + today.strftime('%B %d,
%Y') + '\n' + 'Current Hour Demand: ' + str(luzon_data[3][hour - 2]) +
' MW' )
25  plt.xlabel('Hours')
26  plt.ylabel('MEGAWATTS')
27  plt.xticks(range(1,25))
28  plt.grid(linestyle=':')
29  plt.legend(loc='center', frameon=False, bbox_to_anchor=(0.5,
-0.2), fontsize='small')
30  plt.savefig(date + str(hour).zfill(2) + '.png', format='png',
bbox_inches='tight')

the bash script is not able to manage if hour is 24 as i forgot to
write an equation for that.. .but for python script... line 11 and 12
will take care of that... if hour is 24, it will adjust the date a day
before and set hour to 24..

line 15 reformat the csv format and added "dem_target" and
"lwap_target" found in line 7 and 8..

line 18 converted line 15 to a 2 dimensional array and the index
description of the first dimension is found at line 17.. the second
dimension is the value from hour 1 to 24...

fooler.

On Sun, Apr 5, 2015 at 11:37 PM, Roberto Verzola  wrote:
>> what i noticed with that url.. it just updated every hour... 5 minutes
>> after an hour is already good enough... that script is idempotent...
>> meaning if you run several times on the same hour.. it will give you
>> the same results
>
>
> Yes, updates are hourly, but apparently not always at the same time.
> Sometimes 10 mins after the hour, you get an empty .csv file, rather
> than old data. Sometimes, it takes more than 15 min. before the next
> update is available. (Maybe they update manually???)
>
>
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph


wesm.py
Description: Binary data
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] interview with howie severino

2015-04-05 Thread Roberto Verzola
> what i noticed with that url.. it just updated every hour... 5 minutes
> after an hour is already good enough... that script is idempotent...
> meaning if you run several times on the same hour.. it will give you
> the same results


Yes, updates are hourly, but apparently not always at the same time.
Sometimes 10 mins after the hour, you get an empty .csv file, rather
than old data. Sometimes, it takes more than 15 min. before the next
update is available. (Maybe they update manually???)


_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph


Re: [plug] interview with howie severino

2015-04-05 Thread fooler mail
hi jeff,

what i noticed with that url.. it just updated every hour... 5 minutes
after an hour is already good enough... that script is idempotent...
meaning if you run several times on the same hour.. it will give you
the same results

yes... ive been relocated here in the US (home of MIT and Harvard)...
good thing not in finland because salary there is too low compare to
singapore and china (my previous work countries) when it comes to net
income... but singapore is still the best place to work in my
opinion..

in 3 to 5 years time.. ill be retiring as a technical guy and totally
shift career to as a business man (as my business in the philippines
is growing exponentially)... at that time... i dont work for money
anymore and i'll let the money work for me while enjoying the beauty
of our home country...

fooler.


On Sun, Apr 5, 2015 at 9:29 AM, Cayab, JE  wrote:
> hi fooler,
>
> good to see you around!
>
> isn't every 5 mins is */5? I'm talking about the cron entry
>
> how you been? you've been relocated again?
>
> On Fri, Apr 3, 2015 at 12:07 PM, fooler mail  wrote:
>>
>> On Thu, Apr 2, 2015 at 12:48 AM, Roberto Verzola 
>> wrote:
>> >
>> > So the software we need has to do something like this:
>> > - download the PDF or CSV Luzon file from WESM every 3-5 mins after the
>> >   hour
>> > - add the target megawatts as a red horizontal line
>> > - generate the jpeg/png graph.
>> > - upload to server for mirroring/download by everyone else.
>> >
>> >
>> > PS. A peaceful Holy Week to you Mr. fooler! Maybe your extraordinary
>> > programming expertise can help in this activity.
>> >
>>
>> ok here is a bash script (also file attached) to make your holy week
>> more peaceful...
>>
>> you need the following:
>>
>> 1) yum -y install curl
>> 2) yum -y install gnuplot
>>
>> $ cat -n wesm.sh
>>  1  #!/bin/bash
>>  2
>>  3  #Target in MegaWatts
>>  4  TARGET=4500
>>  5
>>  6  DATE=`date +%Y%m%d`
>>  7  HOUR=`date +%H`
>>  8  DATETITLE=`date +"%b %d, %Y"`
>>  9  CSVFILE=$DATE$HOUR.csv
>> 10  PNGFILE=$DATE$HOUR.png
>> 11
>> 12  curl -s
>>
>> "http://www.wesm.ph/chart/export/luzon_dmd_csv_export.php?date=$DATE&hour=$HOUR";
>> | head -n 25 | tail -n 24 | awk -F ',' -v OFS=', ' -v "target=$TARGET"
>> '{print $1,target,$2,$3,$4,$5,$6,$7}' > $CSVFILE
>> 13
>> 14  gnuplot << EOF
>> 15  set output "$PNGFILE"
>> 16  set terminal png nocrop font small size 640,480
>> 17  set xtics 1
>> 18  set key outside center bottom Left reverse
>> 19  set style data linespoints
>> 20  set title "Luzon Market Demand (MW) - $DATETITLE"
>> 21  set xlabel "HOURS"
>> 22  set ylabel "MEGAWATT"
>> 23  plot "$CSVFILE" using 1:2 title 'Target', "$CSVFILE" using 1:3
>> title 'Day Ahead Projection (DAP)', "$CSVFILE" using 1:4 title 'Hour
>> Ahead Projection (RTD)', "$CSVFILE" using 1:5 title 'Current Demand
>> (RTX)'
>> 24  EOF
>>
>> at line 4, change the TARGET to whatever megawatt your desired value
>>
>> at line 12, is the one fetching and reformatting the output and
>> inserted the "TARGET" value at column 2 for gnuplot to be able to
>> understand the format...
>>
>> at line 14, gnuplot is the one creating the graph
>>
>> when you run that command.. it will create two files:
>>
>> 1) MMDDHH.csv
>> 2) MMDDHH.png
>>
>> where:
>>
>>  - year in 4 digits
>> MM - month in 2 digits
>> DD - day in 2 digits
>> HH - hour in 2 digits
>>
>> change the file permission to executable (eg. chmod 700 wesm.sh) and
>> then run (eg. ./wesm.sh)
>>
>> if you run on the next hour... it will create another set of two files
>> because of line 6 and 7...
>>
>> if you want to automate the fetching... put it in cron job...
>>
>> eg.
>>
>> 5 * * * * /path/to/wesm.sh
>>
>> the above line it will fetch 5 minutes after an hour...
>>
>> make sure you set your PATH and default folder properly in your cron
>> job to run curl and gnuplot properly or modify the script to have an
>> absolute path...
>>
>> feel free to modify the script to suit your needs and  feel free to
>> asks questions if you need further help as im pretty sure our experts
>> here in plug will be happy to assist you...
>>
>> fooler.
>>
>> _
>> Philippine Linux Users' Group (PLUG) Mailing List
>> http://lists.linux.org.ph/mailman/listinfo/plug
>> Searchable Archives: http://archives.free.net.ph
>
>
>
>
> --
> jef
>
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph


Re: [plug] interview with howie severino

2015-04-05 Thread Cayab, JE
hi fooler,

good to see you around!

isn't every 5 mins is */5? I'm talking about the cron entry

how you been? you've been relocated again?

On Fri, Apr 3, 2015 at 12:07 PM, fooler mail  wrote:

> On Thu, Apr 2, 2015 at 12:48 AM, Roberto Verzola 
> wrote:
> >
> > So the software we need has to do something like this:
> > - download the PDF or CSV Luzon file from WESM every 3-5 mins after the
> >   hour
> > - add the target megawatts as a red horizontal line
> > - generate the jpeg/png graph.
> > - upload to server for mirroring/download by everyone else.
> >
> >
> > PS. A peaceful Holy Week to you Mr. fooler! Maybe your extraordinary
> > programming expertise can help in this activity.
> >
>
> ok here is a bash script (also file attached) to make your holy week
> more peaceful...
>
> you need the following:
>
> 1) yum -y install curl
> 2) yum -y install gnuplot
>
> $ cat -n wesm.sh
>  1  #!/bin/bash
>  2
>  3  #Target in MegaWatts
>  4  TARGET=4500
>  5
>  6  DATE=`date +%Y%m%d`
>  7  HOUR=`date +%H`
>  8  DATETITLE=`date +"%b %d, %Y"`
>  9  CSVFILE=$DATE$HOUR.csv
> 10  PNGFILE=$DATE$HOUR.png
> 11
> 12  curl -s
> "
> http://www.wesm.ph/chart/export/luzon_dmd_csv_export.php?date=$DATE&hour=$HOUR
> "
> | head -n 25 | tail -n 24 | awk -F ',' -v OFS=', ' -v "target=$TARGET"
> '{print $1,target,$2,$3,$4,$5,$6,$7}' > $CSVFILE
> 13
> 14  gnuplot << EOF
> 15  set output "$PNGFILE"
> 16  set terminal png nocrop font small size 640,480
> 17  set xtics 1
> 18  set key outside center bottom Left reverse
> 19  set style data linespoints
> 20  set title "Luzon Market Demand (MW) - $DATETITLE"
> 21  set xlabel "HOURS"
> 22  set ylabel "MEGAWATT"
> 23  plot "$CSVFILE" using 1:2 title 'Target', "$CSVFILE" using 1:3
> title 'Day Ahead Projection (DAP)', "$CSVFILE" using 1:4 title 'Hour
> Ahead Projection (RTD)', "$CSVFILE" using 1:5 title 'Current Demand
> (RTX)'
> 24  EOF
>
> at line 4, change the TARGET to whatever megawatt your desired value
>
> at line 12, is the one fetching and reformatting the output and
> inserted the "TARGET" value at column 2 for gnuplot to be able to
> understand the format...
>
> at line 14, gnuplot is the one creating the graph
>
> when you run that command.. it will create two files:
>
> 1) MMDDHH.csv
> 2) MMDDHH.png
>
> where:
>
>  - year in 4 digits
> MM - month in 2 digits
> DD - day in 2 digits
> HH - hour in 2 digits
>
> change the file permission to executable (eg. chmod 700 wesm.sh) and
> then run (eg. ./wesm.sh)
>
> if you run on the next hour... it will create another set of two files
> because of line 6 and 7...
>
> if you want to automate the fetching... put it in cron job...
>
> eg.
>
> 5 * * * * /path/to/wesm.sh
>
> the above line it will fetch 5 minutes after an hour...
>
> make sure you set your PATH and default folder properly in your cron
> job to run curl and gnuplot properly or modify the script to have an
> absolute path...
>
> feel free to modify the script to suit your needs and  feel free to
> asks questions if you need further help as im pretty sure our experts
> here in plug will be happy to assist you...
>
> fooler.
>
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>



-- 
jef
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] interview with howie severino

2015-04-02 Thread fooler mail
On Thu, Apr 2, 2015 at 12:48 AM, Roberto Verzola  wrote:
>
> So the software we need has to do something like this:
> - download the PDF or CSV Luzon file from WESM every 3-5 mins after the
>   hour
> - add the target megawatts as a red horizontal line
> - generate the jpeg/png graph.
> - upload to server for mirroring/download by everyone else.
>
>
> PS. A peaceful Holy Week to you Mr. fooler! Maybe your extraordinary
> programming expertise can help in this activity.
>

ok here is a bash script (also file attached) to make your holy week
more peaceful...

you need the following:

1) yum -y install curl
2) yum -y install gnuplot

$ cat -n wesm.sh
 1  #!/bin/bash
 2
 3  #Target in MegaWatts
 4  TARGET=4500
 5
 6  DATE=`date +%Y%m%d`
 7  HOUR=`date +%H`
 8  DATETITLE=`date +"%b %d, %Y"`
 9  CSVFILE=$DATE$HOUR.csv
10  PNGFILE=$DATE$HOUR.png
11
12  curl -s
"http://www.wesm.ph/chart/export/luzon_dmd_csv_export.php?date=$DATE&hour=$HOUR";
| head -n 25 | tail -n 24 | awk -F ',' -v OFS=', ' -v "target=$TARGET"
'{print $1,target,$2,$3,$4,$5,$6,$7}' > $CSVFILE
13
14  gnuplot << EOF
15  set output "$PNGFILE"
16  set terminal png nocrop font small size 640,480
17  set xtics 1
18  set key outside center bottom Left reverse
19  set style data linespoints
20  set title "Luzon Market Demand (MW) - $DATETITLE"
21  set xlabel "HOURS"
22  set ylabel "MEGAWATT"
23  plot "$CSVFILE" using 1:2 title 'Target', "$CSVFILE" using 1:3
title 'Day Ahead Projection (DAP)', "$CSVFILE" using 1:4 title 'Hour
Ahead Projection (RTD)', "$CSVFILE" using 1:5 title 'Current Demand
(RTX)'
24  EOF

at line 4, change the TARGET to whatever megawatt your desired value

at line 12, is the one fetching and reformatting the output and
inserted the "TARGET" value at column 2 for gnuplot to be able to
understand the format...

at line 14, gnuplot is the one creating the graph

when you run that command.. it will create two files:

1) MMDDHH.csv
2) MMDDHH.png

where:

 - year in 4 digits
MM - month in 2 digits
DD - day in 2 digits
HH - hour in 2 digits

change the file permission to executable (eg. chmod 700 wesm.sh) and
then run (eg. ./wesm.sh)

if you run on the next hour... it will create another set of two files
because of line 6 and 7...

if you want to automate the fetching... put it in cron job...

eg.

5 * * * * /path/to/wesm.sh

the above line it will fetch 5 minutes after an hour...

make sure you set your PATH and default folder properly in your cron
job to run curl and gnuplot properly or modify the script to have an
absolute path...

feel free to modify the script to suit your needs and  feel free to
asks questions if you need further help as im pretty sure our experts
here in plug will be happy to assist you...

fooler.


wesm.sh
Description: Bourne shell script
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] interview with howie severino

2015-04-01 Thread Roberto Verzola
Hi Danny,

WESM has a Luzon-only chart. I think this is good enough for our
purposes. You can download either a PDF or a CSV version. Perhaps it
can be downloaded 3-5 mins after every hour. What is missing from the
chart is a horizontal red line representing supply. For our purposes,
let's make this a programmable target we can set ourselves. Thus we can
have several dry runs setting a relatively easy target muna, regardless
of actual supply, and see whether we can keep demand below the target.
Then in subsequent dry runs, we can keep lowering the target. This will
feel like a massive multi-player online game, using switches at
home and office instead of joysticks!

So the software we need has to do something like this:
- download the PDF or CSV Luzon file from WESM every 3-5 mins after the
  hour
- add the target megawatts as a red horizontal line
- generate the jpeg/png graph.
- upload to server for mirroring/download by everyone else.

You don't need to touch the date/hour. We should use what is on the
WESM chart. We just need to add the red horizontal line (the line we
all want to avoid).

Any other volunteers? It would be nice to have something going by
Easter Sunday or Monday... I'm also working on it, but my python skills
are somewhat inadequate for some of the more difficult portions of
this task.

Greetings to all pluggers,

Obet Verzola

PS. A peaceful Holy Week to you Mr. fooler! Maybe your extraordinary
programming expertise can help in this activity. 



On Mon, 30 Mar 2015 07:14:50 +
Danny Ching  wrote:

> there is a link to get the PDF  of the chart.
> 
> http://www.wesm.ph/chart/export/total_dmd_export.php?date=20150330&hour=14
> 
> We just replace the date and the hour.
> 
> I'll try to check the source code of the website to see if we can
> trigger the download link (using scripts) for the PNG/JPG version.
> 
> On Sun, Mar 29, 2015 at 10:26 PM Roberto Verzola 
> wrote:
> 
> > Danny Ching  wrote:
> > > My servers are at your disposal. :)
> > >
> >
> > Hi Danny,
> >
> > In case more come forward to offer their Linux servers to mirror the
> > load curve, we will have to coordinate things, to avoid overloading
> > our source of the real-time display. My suggestion is for only one
> > to get the image from the source. Let us call it our main mirror.
> > Then everybody else has to be convinced to get it from our main
> > mirror, not from the original source. Otherwise, the source might
> > balk at the extra load and restrict access.
> >
> > This is the kind of display I have in mind: http://www.wesm.ph/
> > inner.php/the_market/wholesale/market_data_and_reports/
> > daily_market_demand_and_lwap/luzon_and_visayas.
> >
> > The WESM display above is not real-time (it's updated every hour).
> > In case we can't get any real-time display, we might have to make
> > do with this one. One complication: it seems the display above is
> > not an image file, I had to grab the image from my screen. It may
> > need a little programming to grab the image every 15 mins or so and
> > then save it in a format that facilitates further mirroring. You
> > know much more about this than I do, I'm sure.
> >
> > You can start testing with above image now, and if we manage to
> > negotiate a more-frequently updated site, we can just change the
> > source URL.
> >
> > Also, may I suggest that anyone else who wants to volunteer their
> > servers for this activity tag the real-time image with the term "no
> > brownouts in summer real-time display". This is the term we will ask
> > everyone to google, if they want the display.
> >
> > By the way, in case anyone who wants to be closer to the action, you
> > can attend our brainstorming session this Tues, 4pm at the PRRM
> > office near Capitol Medical Center. (You can find the PRRM office
> > via Googlemaps.) Pls email (or text me: 0939-117-8999) if you
> > intend to attend.
> >
> > Greetings to all pluggers,
> >
> > Obet Verzola
> >
> >
> > On Fri, 27 Mar 2015 04:14:36 +
> > Danny Ching  wrote:
> >
> > > My servers are at your disposal. :)
> > >
> > > On Fri, Mar 27, 2015 at 11:53 AM Roberto Verzola
> > >  wrote:
> > >
> > > > Dear pluggers,
> > > >
> > > > Here's my interview yesterday (March 25, Wed 9am) with Howie
> > > > Severino in his News To Go program, on my "No brownouts in
> > > > summer" proposal.
> > > >
> > > > http://www.gmanetwork.com/news/story/459298/scitech/
> > > > science/solar-power-and-bayanihan-can-solve-phl-power-
> > > > crisis-says-scientist
> > > >
> > > > If the government accepts the suggestion, I will need help from
> > > > those who run Web hosts to mirror the real-time display of the
> > > > electricity load curve.
> > > >
> > > > If anyone among you knows Energy Sec. Petilla personally, I hope
> > > > you can help me convince him to try the idea out.
> > > >
> > > > Greetings to all,
> > > >
> > > > Obet
> > > > _
> > > > Philippine Linux Users' Group (PLUG) Mailing List
> > > > 

Re: [plug] interview with howie severino

2015-03-30 Thread Roberto Verzola
Hi Danny,

Do not invest too much work muna on the WESM display, as we are trying
to get something that might suit our purposes better (more freq.
updates, and a smaller coverage --- Meralco service area lang, for
example). Thanks for all the effort,

If others want to volunteer your servers, you're welcome! (It will just
be a single image that people will download, so it should not put too
much load on your server...) 

Greetings to all pluggers,

Obet


On Mon, 30 Mar 2015 07:14:50 +
Danny Ching  wrote:

> there is a link to get the PDF  of the chart.
> 
> http://www.wesm.ph/chart/export/total_dmd_export.php?date=20150330&hour=14
> 
> We just replace the date and the hour.
> 
> I'll try to check the source code of the website to see if we can
> trigger the download link (using scripts) for the PNG/JPG version.
> 
> On Sun, Mar 29, 2015 at 10:26 PM Roberto Verzola 
> wrote:
> 
> > Danny Ching  wrote:
> > > My servers are at your disposal. :)
> > >
> >
> > Hi Danny,
> >
> > In case more come forward to offer their Linux servers to mirror the
> > load curve, we will have to coordinate things, to avoid overloading
> > our source of the real-time display. My suggestion is for only one
> > to get the image from the source. Let us call it our main mirror.
> > Then everybody else has to be convinced to get it from our main
> > mirror, not from the original source. Otherwise, the source might
> > balk at the extra load and restrict access.
> >
> > This is the kind of display I have in mind: http://www.wesm.ph/
> > inner.php/the_market/wholesale/market_data_and_reports/
> > daily_market_demand_and_lwap/luzon_and_visayas.
> >
> > The WESM display above is not real-time (it's updated every hour).
> > In case we can't get any real-time display, we might have to make
> > do with this one. One complication: it seems the display above is
> > not an image file, I had to grab the image from my screen. It may
> > need a little programming to grab the image every 15 mins or so and
> > then save it in a format that facilitates further mirroring. You
> > know much more about this than I do, I'm sure.
> >
> > You can start testing with above image now, and if we manage to
> > negotiate a more-frequently updated site, we can just change the
> > source URL.
> >
> > Also, may I suggest that anyone else who wants to volunteer their
> > servers for this activity tag the real-time image with the term "no
> > brownouts in summer real-time display". This is the term we will ask
> > everyone to google, if they want the display.
> >
> > By the way, in case anyone who wants to be closer to the action, you
> > can attend our brainstorming session this Tues, 4pm at the PRRM
> > office near Capitol Medical Center. (You can find the PRRM office
> > via Googlemaps.) Pls email (or text me: 0939-117-8999) if you
> > intend to attend.
> >
> > Greetings to all pluggers,
> >
> > Obet Verzola
> >
> >
> > On Fri, 27 Mar 2015 04:14:36 +
> > Danny Ching  wrote:
> >
> > > My servers are at your disposal. :)
> > >
> > > On Fri, Mar 27, 2015 at 11:53 AM Roberto Verzola
> > >  wrote:
> > >
> > > > Dear pluggers,
> > > >
> > > > Here's my interview yesterday (March 25, Wed 9am) with Howie
> > > > Severino in his News To Go program, on my "No brownouts in
> > > > summer" proposal.
> > > >
> > > > http://www.gmanetwork.com/news/story/459298/scitech/
> > > > science/solar-power-and-bayanihan-can-solve-phl-power-
> > > > crisis-says-scientist
> > > >
> > > > If the government accepts the suggestion, I will need help from
> > > > those who run Web hosts to mirror the real-time display of the
> > > > electricity load curve.
> > > >
> > > > If anyone among you knows Energy Sec. Petilla personally, I hope
> > > > you can help me convince him to try the idea out.
> > > >
> > > > Greetings to all,
> > > >
> > > > Obet
> > > > _
> > > > Philippine Linux Users' Group (PLUG) Mailing List
> > > > http://lists.linux.org.ph/mailman/listinfo/plug
> > > > Searchable Archives: http://archives.free.net.ph
> > > >
> >
> > _
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> >

_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph


Re: [plug] interview with howie severino

2015-03-30 Thread Danny Ching
there is a link to get the PDF  of the chart.

http://www.wesm.ph/chart/export/total_dmd_export.php?date=20150330&hour=14

We just replace the date and the hour.

I'll try to check the source code of the website to see if we can trigger
the download link (using scripts) for the PNG/JPG version.

On Sun, Mar 29, 2015 at 10:26 PM Roberto Verzola 
wrote:

> Danny Ching  wrote:
> > My servers are at your disposal. :)
> >
>
> Hi Danny,
>
> In case more come forward to offer their Linux servers to mirror the
> load curve, we will have to coordinate things, to avoid overloading our
> source of the real-time display. My suggestion is for only one to get
> the image from the source. Let us call it our main mirror. Then
> everybody else has to be convinced to get it from our main mirror, not
> from the original source. Otherwise, the source might balk at the extra
> load and restrict access.
>
> This is the kind of display I have in mind: http://www.wesm.ph/
> inner.php/the_market/wholesale/market_data_and_reports/
> daily_market_demand_and_lwap/luzon_and_visayas.
>
> The WESM display above is not real-time (it's updated every hour). In
> case we can't get any real-time display, we might have to make do with
> this one. One complication: it seems the display above is not an image
> file, I had to grab the image from my screen. It may need a little
> programming to grab the image every 15 mins or so and then save it in a
> format that facilitates further mirroring. You know much more about
> this than I do, I'm sure.
>
> You can start testing with above image now, and if we manage to
> negotiate a more-frequently updated site, we can just change the source
> URL.
>
> Also, may I suggest that anyone else who wants to volunteer their
> servers for this activity tag the real-time image with the term "no
> brownouts in summer real-time display". This is the term we will ask
> everyone to google, if they want the display.
>
> By the way, in case anyone who wants to be closer to the action, you
> can attend our brainstorming session this Tues, 4pm at the PRRM office
> near Capitol Medical Center. (You can find the PRRM office via
> Googlemaps.) Pls email (or text me: 0939-117-8999) if you intend to
> attend.
>
> Greetings to all pluggers,
>
> Obet Verzola
>
>
> On Fri, 27 Mar 2015 04:14:36 +
> Danny Ching  wrote:
>
> > My servers are at your disposal. :)
> >
> > On Fri, Mar 27, 2015 at 11:53 AM Roberto Verzola 
> > wrote:
> >
> > > Dear pluggers,
> > >
> > > Here's my interview yesterday (March 25, Wed 9am) with Howie
> > > Severino in his News To Go program, on my "No brownouts in summer"
> > > proposal.
> > >
> > > http://www.gmanetwork.com/news/story/459298/scitech/
> > > science/solar-power-and-bayanihan-can-solve-phl-power-
> > > crisis-says-scientist
> > >
> > > If the government accepts the suggestion, I will need help from
> > > those who run Web hosts to mirror the real-time display of the
> > > electricity load curve.
> > >
> > > If anyone among you knows Energy Sec. Petilla personally, I hope
> > > you can help me convince him to try the idea out.
> > >
> > > Greetings to all,
> > >
> > > Obet
> > > _
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > http://lists.linux.org.ph/mailman/listinfo/plug
> > > Searchable Archives: http://archives.free.net.ph
> > >
>
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] interview with howie severino

2015-03-29 Thread Roberto Verzola
Danny Ching  wrote:
> My servers are at your disposal. :)
> 

Hi Danny,

In case more come forward to offer their Linux servers to mirror the
load curve, we will have to coordinate things, to avoid overloading our
source of the real-time display. My suggestion is for only one to get
the image from the source. Let us call it our main mirror. Then
everybody else has to be convinced to get it from our main mirror, not
from the original source. Otherwise, the source might balk at the extra
load and restrict access.

This is the kind of display I have in mind: http://www.wesm.ph/
inner.php/the_market/wholesale/market_data_and_reports/
daily_market_demand_and_lwap/luzon_and_visayas.

The WESM display above is not real-time (it's updated every hour). In
case we can't get any real-time display, we might have to make do with
this one. One complication: it seems the display above is not an image
file, I had to grab the image from my screen. It may need a little
programming to grab the image every 15 mins or so and then save it in a
format that facilitates further mirroring. You know much more about
this than I do, I'm sure.

You can start testing with above image now, and if we manage to
negotiate a more-frequently updated site, we can just change the source
URL.

Also, may I suggest that anyone else who wants to volunteer their
servers for this activity tag the real-time image with the term "no
brownouts in summer real-time display". This is the term we will ask
everyone to google, if they want the display.

By the way, in case anyone who wants to be closer to the action, you
can attend our brainstorming session this Tues, 4pm at the PRRM office
near Capitol Medical Center. (You can find the PRRM office via
Googlemaps.) Pls email (or text me: 0939-117-8999) if you intend to
attend.

Greetings to all pluggers,

Obet Verzola


On Fri, 27 Mar 2015 04:14:36 +
Danny Ching  wrote:

> My servers are at your disposal. :)
> 
> On Fri, Mar 27, 2015 at 11:53 AM Roberto Verzola 
> wrote:
> 
> > Dear pluggers,
> >
> > Here's my interview yesterday (March 25, Wed 9am) with Howie
> > Severino in his News To Go program, on my "No brownouts in summer"
> > proposal.
> >
> > http://www.gmanetwork.com/news/story/459298/scitech/
> > science/solar-power-and-bayanihan-can-solve-phl-power-
> > crisis-says-scientist
> >
> > If the government accepts the suggestion, I will need help from
> > those who run Web hosts to mirror the real-time display of the
> > electricity load curve.
> >
> > If anyone among you knows Energy Sec. Petilla personally, I hope
> > you can help me convince him to try the idea out.
> >
> > Greetings to all,
> >
> > Obet
> > _
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> >

_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph


Re: [plug] interview with howie severino

2015-03-27 Thread Roberto Verzola
Ok, Zap, thanks. 

Now for an on-topic matter, one of the urgent needs today in the local
solar industry is a lower-cost grid-tie inverter, that is at least as
good and pref. better than China-made ones. This is a business
opportunity for local entrepreneurs. The inverter has to implement MPPT
(max. power pt tracking) on the input side has to meet 
intl standards (IEEE, UL, etc) on the output side. 

I can imagine a controller running real-time Linux inside such GTI.
I've seen three major technological revolutions in our time (and was
active in two of them). The desktop, the cellphone, and the Internet.
Lots of people who dove early made money (well, a few also lost money).
My interest is in the social implications of these tech. upheavals.

The fourth one will be distributed generation revolution, driven mostly
by solar rooftop. Utilities have already branded this development as a
destructive technology. The earlier three were too. (Who uses
mainframes today?  Or landlines, or buys a newspaper?). This is
something even the poor can eventually join (just like vendors today
have cellphones.)

The fifth will be the battery storage revolution, for which very intense
research is going on today in several industries: lapstops/netbooks,
mobile phones, electric cars, and of course, solar wind and othere
variable energy sources. Once it happens, centralized generation will
go the way of mainframes and landline phones. They will not disappear,
but their role will be highly diminished.

Reminder: my book that discusses these in more detail and was launched
by the publisher last Tuesday in UP can be downloaded for free, just
google the title: Crossing Over: The Energy Transition to Renewable
Electricity.

And thanks for the use of this list, where I can  still reach my old
IT friends from way back.

Obet
 

On Fri, 27 Mar 2015 12:14:14 +0800
Zak Elep  wrote:

> Friendly reminder that there's still a plug-misc mailing list, to
> avoid triggering some folks :)
> 
> That said, thanks for keeping us aware of the power issue! If only we
> could respond it with a sysctl call...
> On Mar 27, 2015 11:53 AM, "Roberto Verzola" 
> wrote:
> 
> > Dear pluggers,
> >
> > Here's my interview yesterday (March 25, Wed 9am) with Howie
> > Severino in his News To Go program, on my "No brownouts in summer"
> > proposal.
> >
> >
> > http://www.gmanetwork.com/news/story/459298/scitech/science/solar-power-and-bayanihan-can-solve-phl-power-crisis-says-scientist
> >
> > If the government accepts the suggestion, I will need help from
> > those who run Web hosts to mirror the real-time display of the
> > electricity load curve.
> >
> > If anyone among you knows Energy Sec. Petilla personally, I hope
> > you can help me convince him to try the idea out.
> >
> > Greetings to all,
> >
> > Obet
> > _
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> >

_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph


Re: [plug] interview with howie severino

2015-03-26 Thread Zak Elep
Friendly reminder that there's still a plug-misc mailing list, to avoid
triggering some folks :)

That said, thanks for keeping us aware of the power issue! If only we could
respond it with a sysctl call...
On Mar 27, 2015 11:53 AM, "Roberto Verzola"  wrote:

> Dear pluggers,
>
> Here's my interview yesterday (March 25, Wed 9am) with Howie Severino
> in his News To Go program, on my "No brownouts in summer" proposal.
>
>
> http://www.gmanetwork.com/news/story/459298/scitech/science/solar-power-and-bayanihan-can-solve-phl-power-crisis-says-scientist
>
> If the government accepts the suggestion, I will need help from those
> who run Web hosts to mirror the real-time display of the electricity
> load curve.
>
> If anyone among you knows Energy Sec. Petilla personally, I hope you can
> help me convince him to try the idea out.
>
> Greetings to all,
>
> Obet
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] interview with howie severino

2015-03-26 Thread Danny Ching
My servers are at your disposal. :)

On Fri, Mar 27, 2015 at 11:53 AM Roberto Verzola 
wrote:

> Dear pluggers,
>
> Here's my interview yesterday (March 25, Wed 9am) with Howie Severino
> in his News To Go program, on my "No brownouts in summer" proposal.
>
> http://www.gmanetwork.com/news/story/459298/scitech/
> science/solar-power-and-bayanihan-can-solve-phl-power-
> crisis-says-scientist
>
> If the government accepts the suggestion, I will need help from those
> who run Web hosts to mirror the real-time display of the electricity
> load curve.
>
> If anyone among you knows Energy Sec. Petilla personally, I hope you can
> help me convince him to try the idea out.
>
> Greetings to all,
>
> Obet
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph