import {fetch} from 'wix-fetch'; function parseRetsXml(xml) { const parser = new DOMParser(); const xmlDoc = parser.parseFromString(xml, "text/xml"); const retsNode = xmlDoc.getElementsByTagName("RETS")[0]; const replyCode = retsNode.getAttribute("ReplyCode"); const replyText = retsNode.getAttribute("ReplyText"); const loginUrl = retsNode.getAttribute("Login"); const searchUrl = retsNode.getAttribute("Search"); return { replyCode, replyText, loginUrl, searchUrl }; } async function searchMLS(xml, query) { const retsInfo = parseRetsXml(xml); const response = await fetch(retsInfo.searchUrl, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: `search=${encodeURIComponent(query)}` }); const results = await response.json(); return results; } const xml = ' Broker = MemberName = 79190-RETSIDX James T Morrison MetadataVersion = 8.09.00001 MinMetadataVersion = 8.09.00001 User = 547029,NULL,NULL,NULL Login = http://rets.hawaiiinformation.com:6103/rets/login Logout = http://rets.hawaiiinformation.com:6103/rets/logout Search = http://rets.hawaiiinformation.com:6103/rets/search GetMetadata = http://rets.hawaiiinformation.com:6103/rets/getMetadata GetObject = http://rets.hawaiiinformation.com:6103/rets/getObject Balance = 0.01 TimeoutSeconds = 1800 '; const query = 'property type:Residential'; searchMLS(xml, query).then(results => { console.log(results); });
top of page
  • Writer's pictureJames T. Morrison R(S)

Green Flash at Sunset



The green flash is a phenomenon that occurs during a sunset, where a bright green streak of light can be seen just as the sun dips below the horizon. It is a highly elusive and elusive sight that many people wait patiently to see, but not all are fortunate enough to catch a glimpse of it.

The green flash is caused by the refraction of light as it passes through the Earth's atmosphere. As the sun sets, the light has to travel through more layers of the atmosphere, causing it to bend and scatter. The green light is the last color of the spectrum to be visible before the sun disappears, and this brief flash of green light is what we see as the green flash.

The elusiveness of the green flash is what makes it so special and exciting for people to see. It is often only visible for a few seconds, and only under specific conditions such as clear skies, low humidity, and a flat horizon. Many people will wait for hours at the beach, or on high vantage points, in hopes of catching a glimpse of the elusive green flash. However, not everyone is fortunate enough to see it, and some may even go their entire lives without ever seeing it.

Many people believe that the green flash is a myth, and that it does not exist. They argue that it is impossible for the sun to change color in such a brief period of time, and that it is just an optical illusion. However, scientists and meteorologists have been able to prove that the green flash is a real phenomenon, and that it can be observed and studied under the right conditions.

In conclusion, the green flash is a rare and elusive phenomenon that occurs during a sunset. It is caused by the refraction of light as it passes through the Earth's atmosphere, and is only visible for a few seconds under specific conditions. Despite its elusiveness, many people wait patiently to see the green flash, and for some, it becomes a lifelong quest. However, not everyone is fortunate enough to see it, and some may even think that it does not exist.


0 views0 comments

Recent Posts

See All
  • Facebook
  • Instagram
  • Yelp
bottom of page