It is currently April 18th, 2024, 2:30 pm

Rainstagram

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Rainstagram

Post by Seahorse »

I really enjoy digital photography and Instagram is a nice accessible way you can check out other people's work and gain some inspiration. Unless it is one of those over-filtered, heavily saturated shots I dislike intensely that always seem to win PhotooftheDay!
Capture.PNG
I did check to see if there was a neater way of doing this but it appears my original approach is about as good as it gets.

So, where am I? Using the RSS feed over at Webstagram I have taken the first 5 from the Popular feed and they toggle quite happily.

To do:

Add buttons for Photooftheday and your personal feed assuming you have an account (which you need to set up on your phone). Then implement those as well, current plan is to integrate all of them into a single skin, and recycle as much of the code as possible. Will have to see how it goes over the weekend.

Code: Select all

[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
Blur=1
BlurRegion=2,0,0,210,285,25

[Metadata]
Name=Cobalt Rainstagram
Version=1.0
License=Creative Commons BY-NC-SA 3.0
Information=Description: Slideshow webstagram from RSS feed. | Instructions: See comments in the skin .ini 

between the ********** sections.  If you want to alter the refresh interval edit "UpdateDivider=15" (SECONDS) 

IN [Random].  15=15 Seconds, so 30 Minutes=60*30=1800 e.g."UpdateDivider=1800". | Credits: Nil.

;1.0 - Release

;===============================================================================================
;Variables
;===============================================================================================

[Variables]

;Fonts & Colours
@include="#SKINSPATH#Cobolt\Settings.inc"

;Time between image changes measures in seconds (default =60 seonds/1 Minute)
SecondsCount=60

;URLs
URLPop=http://widget.stagram.com/rss/popular/
URLPotD=http://widget.stagram.com/rss/n/photooftheday

;Allows toggling between images
ImageNumber1=3
ImageNumber2=4
ImageNumber3=5
ImageNumber4=1
ImageNumber5=2

;===============================================================================================
;Measures
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Calc and image toggle - the 
;-----------------------------------------------------------------------------------------------

[CalcCounter]
Measure=Calc
Formula=(CalcCounter%#SecondsCount#)+1
IfEqualValue=#SecondsCount#
IfEqualAction=[!WriteKeyValue Variables ImageNumber1 #ImageNumber2#][!WriteKeyValue Variables ImageNumber2 

#ImageNumber3#][!WriteKeyValue Variables ImageNumber3 #ImageNumber4#][!WriteKeyValue Variables ImageNumber4 

#ImageNumber5#][!WriteKeyValue Variables ImageNumber5 #ImageNumber1#][!Refresh]

;-----------------------------------------------------------------------------------------------
;WeParser - Pulls the top 5 images from the RSS feed.
;-----------------------------------------------------------------------------------------------

;<author>Webstagram</author>break for duplicates

[MeasureWebstagram]
Measure=Plugin
Plugin=WebParser
UpdateRate=300
Url=#URLPop#
RegExp="(?siU).*</dc:date>.* <title>(.*)</title>.*<link>(.*)</link>.*<a href="(.*)"><img src="(.*)".*@(.*)

</a>.*<img src="(.*)" .*color:red;">(.*)</span>.*COMMENTS:">(.*)</p>.*<author>Webstagram</author>.* <title>

(.*)</title>.*<link>(.*)</link>.*<a href="(.*)"><img src="(.*)".*@(.*)</a>.*<img src="(.*)" .*color:red;">(.*)

</span>.*COMMENTS:">(.*)</p>.*<author>Webstagram</author>.* <title>(.*)</title>.*<link>(.*)</link>.*<a 

href="(.*)"><img src="(.*)".*@(.*)</a>.*<img src="(.*)" .*color:red;">(.*)</span>.*COMMENTS:">(.*)

</p>.*<author>Webstagram</author>.* <title>(.*)</title>.*<link>(.*)</link>.*<a href="(.*)"><img src="(.*)".*@

(.*)</a>.*<img src="(.*)" .*color:red;">(.*)</span>.*COMMENTS:">(.*)</p>.*<author>Webstagram</author>.* 

<title>(.*)</title>.*<link>(.*)</link>.*<a href="(.*)"><img src="(.*)".*@(.*)</a>.*<img src="(.*)" 

.*color:red;">(.*)</span>.*COMMENTS:">(.*)</p>"

;-----------------------------------------------------------------------------------------------
;First Image
;-----------------------------------------------------------------------------------------------

[MeasureTitle1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=1
Substitute="'":"'"

[MeasureLinktoBig1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=2
;use for URL click through, not for display

[MeasureLinktoUserPage1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=3
;use for URL click through, not for display

[MeasureProfilePic1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=4
Download=1

[MeasureUserName1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=5

[MeasureImage1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=6
Download=1

[MeasureLikes1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=7

[MeasureComments1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=8

;-----------------------------------------------------------------------------------------------
;Second Image
;-----------------------------------------------------------------------------------------------

[MeasureTitle2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=9
Substitute="'":"'"

[MeasureLinktoBig2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=10
;use for URL click through, not for display

[MeasureLinktoUserPage2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=11
;use for URL click through, not for display

[MeasureProfilePic2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=12
Download=1

[MeasureUserName2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=13

[MeasureImage2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=14
Download=1

[MeasureLikes2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=15

[MeasureComments2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=16

;-----------------------------------------------------------------------------------------------
;Third Image
;-----------------------------------------------------------------------------------------------

[MeasureTitle3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=17
Substitute="'":"'"

[MeasureLinktoBig3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=18
;use for URL click through, not for display

[MeasureLinktoUserPage3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=19
;use for URL click through, not for display

[MeasureProfilePic3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=20
Download=1

[MeasureUserName3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=21

[MeasureImage3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=22
Download=1

[MeasureLikes3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=23

[MeasureComments3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=24

;-----------------------------------------------------------------------------------------------
;Fourth Image
;-----------------------------------------------------------------------------------------------

[MeasureTitle4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=25
Substitute="'":"'"

[MeasureLinktoBig4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=26
;use for URL click through, not for display

[MeasureLinktoUserPage4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=27
;use for URL click through, not for display

[MeasureProfilePic4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=28
Download=1

[MeasureUserName4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=29

[MeasureImage4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=30
Download=1

[MeasureLikes4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=31

[MeasureComments4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=32

;-----------------------------------------------------------------------------------------------
;Fifth Image
;-----------------------------------------------------------------------------------------------

[MeasureTitle5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=33
Substitute="'":"'"

[MeasureLinktoBig5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=34
;use for URL click through, not for display

[MeasureLinktoUserPage5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=35
;use for URL click through, not for display

[MeasureProfilePic5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=36
Download=1

[MeasureUserName5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=37

[MeasureImage5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=38
Download=1

[MeasureLikes5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=39

[MeasureComments5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWebstagram]
StringIndex=40

;===============================================================================================
;Meters
;===============================================================================================

[MeterProfilePic]
Meter=IMAGE
MeasureName=MeasureProfilePic#ImageNumber1#
X=10
Y=10
H=30
W=30
LeftMouseUpAction=["[MeasureLinktoUserPage#ImageNumber1#]"]

[MeterUserName]
Meter=String
MeasureName=MeasureUsername#ImageNumber1#
X=R
Y=10
H=16
W=160
MeterStyle=StringStyleNoClip
StringStyle=Bold
FontColor=#Colour2#
FontSize=13
LeftMouseUpAction=["[MeasureLinktoUserPage#ImageNumber1#]"]

[MeterLikesImage]
Meter=Image
ImageName=#@#Images\Likes.png
X=2r
Y=R

[MeterLikes]
Meter=String
MeasureName=MeasureLikes#ImageNumber1#
X=R
Y=r
MeterStyle=StringStyleNoClip

[MeterCommentsImage]
Meter=Image
ImageName=#@#Images\Comments.png
X=5R
Y=r

[MeterComments]
Meter=String
MeasureName=MeasureComments#ImageNumber1#
X=R
Y=r
MeterStyle=StringStyleNoClip

[MetereImage]
Meter=IMAGE
MeasureName=MeasureImage#ImageNumber1#
X=10
Y=5R
H=190
W=190
LeftMouseUpAction=["[MeasureLinktoBig#ImageNumber1#]"]

[MeterTitle]
Meter=String
MeasureName=MeasureTitle#ImageNumber1#
X=10
Y=5R
H=40
W=190
MeterStyle=StringStyle
text=%1
LeftMouseUpAction=["[MeasureLinktoBig#ImageNumber1#]"]

;-----------------------------------------------------------------------------------------------
;Graphics - Additionally forces the aero blur borders to correct position.
;-----------------------------------------------------------------------------------------------

[MeterGlossTop]
Meter=Image
X=0
Y=0
W=215
H=40
ImageName=#@#Images\GlossTop.png

[MeterGlossBottom]
Meter=Image
X=0
Y=260
W=210
H=25
ImageName=#@#Images\GlossBottom.png

You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt